-
Notifications
You must be signed in to change notification settings - Fork 31
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
Dispose of ThreadRental at conclusion of UITheory test #47
Conversation
Fixes #44 hang at end of test run.
@weltkante Would you review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks sensible. I've downloaded the artifact and can confirm both the repro and winforms no longer hang.
I've started seeing following exception. Not sure if its related to this change. I doubt its related to the other PR (I'm using this PR's artifact). Also I'm not entirely sure if its a new issue or existed before and just wasn't surfacing due to the hang. The stack trace is a bit weird, with a failed debug assert mixed into it,
|
Yeah can confirm this is not the fault of this PR, I rolled back to |
Thanks for testing. I trust you'll file another bug if you find the crash you saw is due to xunit.stafact. |
Looks like this needs to be adressed in the WinForms unit tests, they are disposing the SC early. Probably shouldn't be WinFormsFacts if they setup/terminate the infrastructure manually. |
@weltkante I'm not sure whether you're blaming the |
Not blaming stafact, continuing discussion on dotnet/winforms#3297 |
Fixes #44 hang at end of test run.