Skip to content

Conversation

@soerendd
Copy link

@soerendd soerendd commented Jan 18, 2024

Replace Dispatcher.Run with PushFrame as Dispatcher.Run needs to exit all frames to return properly which causes issues if there is already an outer frame.

Should fix #4602

- Replace Dispatcher.Run with PushFrame as Dispatcher.Run needs to exit all frames to return properly which causes issues if there is already a outer frame running
@soerendd
Copy link
Author

@dotnet-policy-service agree

Copy link
Contributor

@jnm2 jnm2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much! LGTM

@jnm2
Copy link
Contributor

jnm2 commented Jan 18, 2024

If it's possible to write a test that fails for the previous strategy and succeeds here, that would be great.

@soerendd
Copy link
Author

If it's possible to write a test that fails for the previous strategy and succeeds here, that would be great.

Sure thing. I checked if there is a test for the message pump strategies. There are none.

I will check where to add this test

@soerendd
Copy link
Author

soerendd commented Jan 19, 2024

If it's possible to write a test that fails for the previous strategy and succeeds here, that would be great.

Sure thing. I checked if there is a test for the message pump strategies. There are none.

I will check where to add this test

@jnm2 I'm sorry but I haven't found a place where to put tests for that. The reason is that it would require a reference to System.Windows.Threading (wpf). Furthermore, I do not see an easy way to mock this properly.

@OsirisTerje
Copy link
Member

@soerendd The builds fails due to a mismatch on sdks. This is fixed in the master branch, so if you just merge in the master branch and push that up, the builds should work just fine.

@soerendd
Copy link
Author

@OsirisTerje Merged and pushed.

@OsirisTerje OsirisTerje merged commit 68d9947 into nunit:master Jan 29, 2024
@soerendd soerendd deleted the issue-4602 branch February 1, 2024 09:02
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.

WpfMessagePumpStrategy - change from Dispatcher.Run to Dispatcher.PushFrame

4 participants