Skip to content
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] Do not share ContextCache between threads #1153

Merged
merged 1 commit into from
Jun 18, 2017

Conversation

mpkorstanje
Copy link
Contributor

The TestContextManager(Class<?>) uses a static ContextCache. This meant
that step definitions from different threads could be registered in
same context multiple times when running in parallel.

This is resolved by creating a ThreadLocal ContextCache for each
SpringFactory.

Related issues:

@mpkorstanje mpkorstanje force-pushed the fix-spring-factory branch 2 times, most recently from 0010b4c to a155490 Compare June 18, 2017 22:07
 The TestContextManager(Class<?>) uses a static ContextCache. This meant
 that step definitions from different threads could be registered in
 same context multiple times when running in parallel.

 This is resolved by creating a ThreadLocal ContextCache for each
 SpringFactory.

 Related issues:
  - https://travis-ci.org/cucumber/cucumber-jvm/jobs/244215644
  - #1148
@mpkorstanje mpkorstanje merged commit 231c856 into master Jun 18, 2017
@mpkorstanje
Copy link
Contributor Author

I merged this one a bit earlier then I'd liked. Spring kept failing the build otherwise.

@mpkorstanje mpkorstanje deleted the fix-spring-factory branch June 18, 2017 23:20
@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant