Increase timeout to make subsystem tests more reliable (#19937)

Co-authored-by: Dongbo Wang <dongbow@microsoft.com>
This commit is contained in:
Travis Plunk
2023-07-12 09:45:06 -07:00
committed by GitHub
co-authored by Dongbo Wang
parent d1d8b65045
commit d3807c4bf2
+2 -2
View File
@@ -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);