test: race condition in test-cluster-disconnect
authorAlexis Campailla <alexis@janeasystems.com>
Fri, 10 Jan 2014 13:27:48 +0000 (05:27 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Mon, 27 Jan 2014 19:54:53 +0000 (11:54 -0800)
commitdc1ffd0da6fcaa2b18bd6817ca3541264ebc8ce7
treeb052e1cb32ac1e990d01710d13aaccaabae54da8
parent14d6df87025b95e781f55101aaad4c7baec46cea
test: race condition in test-cluster-disconnect

The test was not waiting for all the worker-created sockets
to be listening before calling cluster.disconnect().
As a result, the channels with the workers could get closed
before all the socket handles had been passed to them, leading
to various errors.
test/simple/test-cluster-disconnect.js