We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64ea11b commit b1b1689Copy full SHA for b1b1689
src/tests/baseservices/threading/regressions/115178/115178.cs
@@ -166,9 +166,10 @@ private static void RunTestUsingTimedWait()
166
stopwatch.Stop();
167
168
long elapsedMilliseconds = stopwatch.ElapsedMilliseconds;
169
- if (elapsedMilliseconds < 1500)
+ if (elapsedMilliseconds < 1980)
170
{
171
- Console.WriteLine($"Error waiting on event, wait returned too early. Waited {elapsedMilliseconds} ms, expected at least 1500 ms.");
+ // Wait uses low resolution timer, test includes a margin of 20ms to account for timer resolution differences.
172
+ Console.WriteLine($"Error waiting on event, wait returned too early. Waited {elapsedMilliseconds} ms, expected at least 1980 ms.");
173
result = 5;
174
}
175
0 commit comments