strongloop / strong-agent

Profile, control, and monitor Node.js processes and clusters
http://strongloop.com/node-js/devops-tools/
Other
62 stars 9 forks source link

Update test cases to be port independent #9

Open gunjpan opened 8 years ago

gunjpan commented 8 years ago

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

bnoordhuis commented 8 years ago

I'm fairly sure all tests honor the PORT environment variable.

gunjpan commented 8 years ago

@bnoordhuis : They do, but on our CI infrastructure, we have seen failures related to multiple builds trying to run test apps on port 3000.

bnoordhuis commented 8 years ago

What does "our CI" refer to? StrongLoop's? Can you link me to a failing run?

gunjpan commented 8 years ago

I was referring to Strongloop's CI. For the failing run, I get 404 Not found as it has been a while since the issue was created and Jenkins keeps build logs for a limited amount of time. The initial cause was dependent builds failing with: EADDRINUSE. Will link you to the failing run when I come across one.

The end goal is to make test cases more robust. Any suggestions are appreciated.