visionmedia/supertest — pull request #31 by janjongboom (2012-10-26 14:50:03+00:00)
Title: Respect PORT and IP env variables, plus respect listening event on server

1. This pull request runs on the PORT and IP variables that are set in the environment if available and otherwise falls back to the previous values, this is required to get supertest to run on Cloud9 IDE.
2. When creating a HTTP server from an express app, after we're listening an event `listening` will go off the moment that we can actually use it, this adds that event and waits for completion until it's called or fails if this wasn't the case after 1000 ms.