test: fix flaky test-net-socket-timeout-unref
authorRich Trott <rtrott@gmail.com>
Tue, 29 Mar 2016 00:07:22 +0000 (17:07 -0700)
committerMyles Borins <mborins@us.ibm.com>
Mon, 11 Apr 2016 16:45:19 +0000 (12:45 -0400)
commite7877e61b68edb733c51573ec20225df6b12c660
tree333804fcd29d6f613deea3b7c779671379e34d97
parentc91f3d897a5549edd2b7c4ff82e5e78a1b071de5
test: fix flaky test-net-socket-timeout-unref

Throw immediately on socket timeout rather than checking boolean in exit
handler.

PR-URL: https://github.com/nodejs/node/pull/6003
Fixes: https://github.com/nodejs/node/issues/5128
Reviewed-By: Myles Borins <myles.borins@gmail.com>
test/parallel/test-net-socket-timeout-unref.js