test: handling failure cases properly
authorSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Sun, 19 Jul 2015 19:20:21 +0000 (19:20 +0000)
committerSakthipriyan Vairamani <thechargingvolcano@gmail.com>
Thu, 27 Aug 2015 06:05:23 +0000 (11:35 +0530)
commitbdef668881498f519e4a9432a239d5178c00e87a
tree6b9510b3e22c467b48676302e6faa621e6b63f20
parent34e25b2313cd0b4027cbfb5e626596e4b9cff038
test: handling failure cases properly

Refer: https://github.com/nodejs/io.js/issues/1543

When this test fails, it leaves dead processes in the system. This
patch makes sure that the child processes exit first, in case of
errors.

PR-URL: https://github.com/nodejs/node/pull/2206
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
test/parallel/test-cluster-eaccess.js