-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
#1700 Create custom Ocelot config file when instantiating steps during parallel execution #1703
#1700 Create custom Ocelot config file when instantiating steps during parallel execution #1703
Conversation
…Finally deleting the newly created config file when disposing the Step instance.
Wow! Cool! Just commit a small change of Ocelot core, not tests, and the 2nd commit should be revert commit of previous one. Good plan? |
@raman-m no way, that's really funny ;-) 6 out of 10... I can't reproduce that on my machine |
@raman-m Ok, a bit better now, 9 out of 11... |
…le.WriteAllText will overwrite the file.
This reverts commit 9fac778.
1c97c39
to
b17db75
Compare
@raman-m No it wasn't, but the random port finder code doesn't seem to be thread safe, since the concurrentbag would allow identical values to be stored and the method can be accessed by several threads concurrently |
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.
Minor issues, but it is always good to improve the code.
…t_routes from 1000 ms to 1500 ms
https://github.com/ggnaegi/Ocelot into bug/1700-unstable-test-should-reload-config-on-change
@raman-m imho ok to merge |
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.
+ Approved
@ggnaegi Congrats! |
Fixes #1700
When instantiating steps, creating a custom ocelot config file name. Finally deleting the newly created config file when disposing the
Step
instance.Proposed Changes
Step
is instantiated for each fact/theory, we need to ensure that the corresponding fact/theory only uses its own ocelot configuration file, without interfering with the configuration files of other facts and theories.