-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Do not create new instances in nested tests #24172
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
@geoand I'll let you decide if this needs to be backported. |
I'll need to look at this closer, because I think there is more to it than this... |
@Sgitario can you explain this change please? |
In this line, a new instance of the outer class was being created to invoke the "before" methods ( quarkus/test-framework/junit5/src/main/java/io/quarkus/test/junit/QuarkusTestExtension.java Line 766 in b08a00e
Therefore, after using the right outer instance, when running the test, the instance will contain the data set at the |
Okay, thanks |
Please also see the bot's comment about the title |
Yes, I renamed the PR title just after I saw the comment. |
Actually, the title is not correct. We don't prefix the titles with the area the fix affects |
CI results looked very weird, so I rebased this to get a fresh run. Edit: CI is still wonky. |
f34c7d5
to
a66f993
Compare
Fix #23947
Fix #20114