mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Increase timeout to make subsystem tests more reliable (#19937)
Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
This commit is contained in:
co-authored by
Dongbo Wang
parent
d1d8b65045
commit
d3807c4bf2
@@ -147,7 +147,7 @@ namespace PSTests.Sequential
|
||||
// cannot finish before the specified timeout.
|
||||
// The specified timeout is exaggerated to make the test reliable.
|
||||
// xUnit must spin up a lot tasks, which makes the test unreliable when the time difference between 'delay' and 'timeout' is small.
|
||||
results = CommandPrediction.PredictInputAsync(predClient, ast, tokens, millisecondsTimeout: 1000).Result;
|
||||
results = CommandPrediction.PredictInputAsync(predClient, ast, tokens, millisecondsTimeout: 1500).Result;
|
||||
Assert.Single(results);
|
||||
|
||||
PredictionResult res = results[0];
|
||||
@@ -214,7 +214,7 @@ namespace PSTests.Sequential
|
||||
slow.DisplayedSuggestions.Count == 0 || fast.DisplayedSuggestions.Count == 0 ||
|
||||
slow.AcceptedSuggestions.Count == 0)
|
||||
{
|
||||
Thread.Sleep(100);
|
||||
Thread.Sleep(300);
|
||||
}
|
||||
|
||||
Assert.Equal(2, slow.History.Count);
|
||||
|
||||
Reference in New Issue
Block a user