test: prevent flakey test on pi2
authorTrevor Norris <trev.norris@gmail.com>
Wed, 2 Mar 2016 22:23:55 +0000 (15:23 -0700)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 19:57:58 +0000 (12:57 -0700)
commit85f927a774e33c892e9bea9aa623e23707f7cbc7
treed6422d8984ca7cf1b7038acf48dccdfa9e25d6a2
parentc86902d80029b299e6941ae6e53d89261790bad1
test: prevent flakey test on pi2

Looping rapidly and making new connections causes problems on pi2.
Instead create a new connection when an old connection has already been
made. Running a stress test of 600 times and they all passed.

Fixes: https://github.com/nodejs/node/issues/5302
PR-URL: https://github.com/nodejs/node/pull/5537
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
test/parallel/test-process-getactivehandles.js [new file with mode: 0644]