test: fix broken FreeBSD test
authorSantiago Gimeno <santiago.gimeno@gmail.com>
Wed, 3 Jun 2015 07:13:56 +0000 (09:13 +0200)
committerBrendan Ashworth <brendan.ashworth@me.com>
Wed, 3 Jun 2015 20:38:03 +0000 (13:38 -0700)
commita804026c9b5b9f8d6316fd5e9fdb9f96f7e1c6b3
treea796e32320a160bd20a3cadb1b09e989387b4196
parent43a82f8a718a91ede0a360ee2c4078e01befcd2b
test: fix broken FreeBSD test

Fixes net-server-max-connections-close-makes-more-available
Handles connection 'error' event so the test ends.

PR-URL: https://github.com/nodejs/io.js/pull/1881
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>
test/parallel/test-net-server-max-connections-close-makes-more-available.js