test: check error type from net.Server.listen()
authorRich Trott <rtrott@gmail.com>
Thu, 28 May 2015 05:46:12 +0000 (22:46 -0700)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 30 May 2015 16:24:36 +0000 (18:24 +0200)
commit8059393934c2ed0e3e7a179f619b803291804344
treee72265f8b4a7ccdf0f12e4552d0fa0c0ae031597
parent5759722cfacf17cc79651c81801a5e03521db053
test: check error type from net.Server.listen()

This change eliminates an unnecessary setTimeout() in the test.

PR-URL: https://github.com/nodejs/io.js/pull/1821
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
test/parallel/test-net-server-try-ports.js