loopback icon indicating copy to clipboard operation
loopback copied to clipboard

Update test cases to be port independent

Open gunjpan opened this issue 10 years ago • 3 comments

Current test cases run server on port 3000, when needed, which crashes other test cases that try to use the same port on same instance causing CI failures. Goal is to make test server apps port independent. Parent issue: https://github.com/strongloop-internal/scrum-loopback/issues/932

gunjpan avatar Jul 11 '16 21:07 gunjpan

@gunjpan @bajtos , I can understand the root cause of the issue. But what would be the intended direction, do you want to pass the port number as an argument to the test case ?

deepakrkris avatar Aug 10 '16 12:08 deepakrkris

@deepakrkris you need to listen on port 0 - that way the operating system assigns a unique unused port for your server. the slightly difficult part is how to update all clients to use the dynamically-generated port when making requests

bajtos avatar Aug 10 '16 13:08 bajtos

Closing in favour of https://github.com/strongloop-internal/scrum-loopback/issues/876

superkhau avatar Nov 29 '16 05:11 superkhau