Skip to content

Fix WaitForNextTickAsync_CanceledWaitThenWaitAgain_Succeeds test - #54775

Merged
stephentoub merged 1 commit into
dotnet:mainfrom
stephentoub:fixperiodictest
Jun 26, 2021
Merged

Fix WaitForNextTickAsync_CanceledWaitThenWaitAgain_Succeeds test#54775
stephentoub merged 1 commit into
dotnet:mainfrom
stephentoub:fixperiodictest

Conversation

@stephentoub

Copy link
Copy Markdown
Member

There's a race condition in the test between the timer firing and cancellation being requested. It repros more on Linux because there's a smaller quantum on Linux than on Windows.

Fixes #54713

@ghost

ghost commented Jun 26, 2021

Copy link
Copy Markdown

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

There's a race condition in the test between the timer firing and cancellation being requested.  It repros more on Linux because there's a smaller quantum on Linux than on Windows.
@stephentoub
stephentoub merged commit 46b5fdc into dotnet:main Jun 26, 2021
@stephentoub
stephentoub deleted the fixperiodictest branch June 26, 2021 19:31
@ghost ghost locked as resolved and limited conversation to collaborators Jul 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure System.Threading.Tests.PeriodicTimerTests.WaitForNextTickAsync_CanceledWaitThenWaitAgain_Succeeds

1 participant