Skip to content

Adjust Test_wait_interrupted_user_apc test timeout to handle deviation due to lowres timers. #116066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/tests/baseservices/threading/regressions/115178/115178.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,10 @@ private static void RunTestUsingTimedWait()

stopwatch.Stop();

if (stopwatch.ElapsedMilliseconds < 2000)
long elapsedMilliseconds = stopwatch.ElapsedMilliseconds;
if (elapsedMilliseconds < 1500)
{
Console.WriteLine($"Error waiting on event, wait returned too early.");
Console.WriteLine($"Error waiting on event, wait returned too early. Waited {elapsedMilliseconds} ms, expected at least 1500 ms.");
result = 5;
}

Expand Down
3 changes: 0 additions & 3 deletions src/tests/issues.targets
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
<ExcludeList Include="$(XunitTestBinBase)/baseservices/threading/regressions/2164/foreground-shutdown/*">
<Issue>https://github.com/dotnet/runtime/issues/83658</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/baseservices/threading/regressions/115178/115178/*">
<Issue>https://github.com/dotnet/runtime/issues/116060</Issue>
</ExcludeList>
<ExcludeList Include="$(XunitTestBinBase)/GC/Coverage/271010/**">
<Issue>https://github.com/dotnet/runtime/issues/5933</Issue>
</ExcludeList>
Expand Down
Loading