Skip to content
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

Execute Dispatcher.RunJobs after each headless NUnit test #17140

Merged

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Sep 26, 2024

This PR ensures that Dispatcher.RunJobs() runs after each headless NUnit test, preventing pending jobs from being executed in the next test.

Note that the XUnit headless infrastructure was already doing this:

var afterTest = () => Dispatcher.UIThread.RunJobs();

This PR should make tests from #17103 pass.

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0052172-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit 3a9a316 into AvaloniaUI:master Sep 27, 2024
11 checks passed
@MrJul MrJul deleted the fix/nunit-headless-runjobs-after-test branch December 21, 2024 13:23
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.

3 participants