-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Spring] Instantiate TestContextManager synchronously #2687
Conversation
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.
Looks pretty decent. If you build a SNAPSHOT (mvn clean install -DskipTests) and use that in your reproducer, does the problem go away?
cucumber-spring/src/test/java/io/cucumber/spring/TestTestContextAdaptorTest.java
Outdated
Show resolved
Hide resolved
@mpkorstanje hi, just want to inform that I’ve tried the SNAPSHOT version and it work!!!! Thanks a lot for your help ❤️ |
Just updated the constructor of |
Codecov Report
@@ Coverage Diff @@
## main #2687 +/- ##
============================================
- Coverage 84.68% 84.68% -0.01%
- Complexity 2680 2682 +2
============================================
Files 322 322
Lines 9450 9449 -1
Branches 899 899
============================================
- Hits 8003 8002 -1
Misses 1120 1120
Partials 327 327
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Hi @ntthaibk, Thanks for your making your first contribution to Cucumber, and welcome to the Cucumber committers team! You can now push directly to this repo and all other repos under the cucumber organization! 🍾 In return for this generous offer we hope you will:
On behalf of the Cucumber core team, |
🤔 What's changed?
As suggestion from #help channel, I'm trying to put TestContextManager initiation to the synchronized block inside start method of TestContextAdaptor to resolve the racing problem of spring boot 3 cucumber test.
⚡️ What's your motivation?
Fixes #2686
🏷️ What kind of change is this?
♻️ Anything particular you want feedback on?
📋 Checklist:
This text was originally generated from a template, then edited by hand. You can modify the template here.