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

Fix SolutionClosing_CancelsActiveWork #9223

Merged
merged 2 commits into from
Sep 2, 2023
Merged

Fix SolutionClosing_CancelsActiveWork #9223

merged 2 commits into from
Sep 2, 2023

Conversation

ryzngard
Copy link
Contributor

@ryzngard ryzngard commented Sep 1, 2023

SolutionClosing_CancelsActiveWork was failing because the test dispatcher does not work correctly even with RunOnDispatcherThread async. It would cause the test to try to complete before change notifications required to mutate state.

The fix is to use a dispatcher that just always reports it is on the correct thread. This can be removed in the future when a better fix around change notifications comes in so we can remove thread asserts.

@ryzngard ryzngard requested a review from a team as a code owner September 1, 2023 22:29
@ryzngard ryzngard merged commit 8699407 into main Sep 2, 2023
@ryzngard ryzngard deleted the fix_race_in_test branch September 2, 2023 01:41
@ghost ghost added this to the Next milestone Sep 2, 2023
@Cosifne Cosifne modified the milestones: Next, 17.8 P3 Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants