balderdashy/sails — pull request #1434 by ndhoule (2014-02-22 21:28:29+00:00)
Title: Fix Sails startup error in load test, ensure tests use open ports

Previously, test runs were throwing an error about port 2001 not being open (see [this example Travis output](https://travis-ci.org/balderdashy/sails/builds/19410416#L1149) to see what I mean). Ostensibly that means that particular load test wasn't actually running.

I use this approach (letting `portfinder` find an open port for me) in my own app's tests to be sure I'm using an open port. Now that I'm typing this, I'm realizing it probably taints the load tests a bit. It also feels a little heavy-handed compared to calling `sails.lower` after each test run, but even when I did that it was throwing errors about port 2001 not being open. Could be a bug in `sails.lower`, more likely a bug in my understanding of `sails.lower`.