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

Unable to run multiple instances in JVM #266

Closed
viveksnv opened this issue Jul 23, 2016 · 1 comment
Closed

Unable to run multiple instances in JVM #266

viveksnv opened this issue Jul 23, 2016 · 1 comment

Comments

@viveksnv
Copy link

I use gradle to run the tests and each test will start/stop the server and manage exceptions.

Gradle runs the tests parallel so if more than one test try to start/stop mock server, it does not work properly.

@jamesdbloom
Copy link
Collaborator

This does work as long as you use a separate port for each instance, there are unit tests that do exactly this in the MockServer build. It is not possible to bind multiple processes to the same port, which is an operating system / networking constraint.

I am closing this issue, if you have more evidence for what the problem is or can explain how to reproduce it please re-open this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants