Skip to content

test: run the flaky timer mock tests on dedicated threads instead of the thread pool - #1190

Merged
vbreuss merged 1 commit into
mainfrom
test/timer-mock-tests-without-thread-pool
Nov 3, 2026
Merged

vbreuss merged 1 commit into
mainfrom
test/timer-mock-tests-without-thread-pool

Conversation

@vbreuss

@vbreuss vbreuss commented Nov 3, 2026

Copy link
Copy Markdown
Member

AdvanceBy_WhenTheCallerHoldsALockTheCallbackNeeds_ShouldNotDeadlock and Wait_WhenTheCallbackDisposesTheTimer_ShouldNotThrow failed on .NET Framework on the Windows build of main, as both ran their advancing or waiting code through Task.Run, Task.Delay and asynchronous continuations, which the thread pool may run too late under parallel tests on .NET Framework. The tests now use dedicated threads and synchronous waits, like the other timer tests that hit this before.

…the thread pool

`AdvanceBy_WhenTheCallerHoldsALockTheCallbackNeeds_ShouldNotDeadlock` and `Wait_WhenTheCallbackDisposesTheTimer_ShouldNotThrow` failed on .NET Framework on the Windows build of main, as both ran their advancing or waiting code through `Task.Run`, `Task.Delay` and asynchronous continuations, which the thread pool may run too late under parallel tests on .NET Framework. The tests now use dedicated threads and synchronous waits, like the other timer tests that hit this before.
@vbreuss vbreuss self-assigned this Nov 3, 2026
@vbreuss
vbreuss enabled auto-merge (squash) November 3, 2026 11:20
@sonarqubecloud

sonarqubecloud Bot commented Nov 3, 2026

Copy link
Copy Markdown

@vbreuss
vbreuss merged commit 0b00896 into main Nov 3, 2026
13 checks passed
@vbreuss
vbreuss deleted the test/timer-mock-tests-without-thread-pool branch November 3, 2026 12:08
@github-actions

Copy link
Copy Markdown

This is addressed in release v8.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant