Skip to content

Commit

Permalink
Increase timeout to make subsystem tests more reliable (PowerShell#18380
Browse files Browse the repository at this point in the history
)
  • Loading branch information
daxian-dbw authored and TravisEz13 committed Jul 12, 2023
1 parent 42663de commit 14e537b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/xUnit/csharp/test_Prediction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static void PredictInput()
// 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];
Expand Down Expand Up @@ -214,7 +214,7 @@ public static void Feedback()
slow.DisplayedSuggestions.Count == 0 || fast.DisplayedSuggestions.Count == 0 ||
slow.AcceptedSuggestions.Count == 0)
{
Thread.Sleep(100);
Thread.Sleep(300);
}

Assert.Equal(2, slow.History.Count);
Expand Down

0 comments on commit 14e537b

Please sign in to comment.