-
Notifications
You must be signed in to change notification settings - Fork 744
Regression in 3.8.1: ApartmentAttribute no longer works when applied to an assembly #2426
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
Comments
I'm suspicious that this could be a side effect of the fix to #2361 |
This is different from but probably related to #2388 |
I'm going away on a family trip for a couple of weeks so I'm taking my name off this to free it up for somebody else to work on. |
We've already upgraded to 3.8.1 (was on 2.6.2 earlier), since we have a large number of tests, we are being blocked by this issue, any timeline as to when the next release (fix) will be available? Also, seeing occasionally that test runs are getting hung. Is this only a 3.8.1 problem, wondering if going back to 3.7.1 would fix the hanging issue as well. Thanks. |
Both these issues were regressions in 3.8.x - so 3.7.1 should work for you until the next release. Your hanging could be caused by a number of things - however, if you are using NUnit's parallelization attributes, there were some changes there in 3.8.x which caused tests to hang more often. A fix for this is being worked on at the moment. Regarding the AppartmentAttribute issue, I don't believe anyone's currently working on this - so as to a fix it really depends when someone picks it up and submits a pull request. |
I have a fix for this issue, can I do a pull request so that you can look at it? I am getting access denied. |
Anyone can do a pull request. Did you fork to your own account first? |
…pogated correctly to tests.
Thanks Charlie, have opened a pull request. |
…eing propogated correctly to tests." This reverts commit 3df3558.
…om 3.7.1. This method was earlier on ParallelWorkItemDispatcher.
…y STA from 3.7.1. This method was earlier on ParallelWorkItemDispatcher." This reverts commit ff42836.
…code was to get the ApartmentState from the parent, this was lost in recursion. Setting it correctly.
I tested with 3.9.0-dev-04639 and this has not been fixed with our recent parallel fixes. This is possibly a duplicate of #2388 |
Create a test project containing the following test:
Compile it against NUnit 3.7.1 - Test Passes
Compile it against NUnit 3.8.1 - Test Fails
Compile it against NUnit 3.8.1 but with the
[Apartment]
attribute on the TestFixture - Test PassesCompile it against NUnit 3.8.1 but with the
[Apartment]
attribute on the Test - Test PassesNote that this bug is present in 3.8.0 as well as 3.8.1
The text was updated successfully, but these errors were encountered: