From aab126bb0604a0159ebc139644a71407661aa6fc Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 31 Jul 2014 16:49:28 -0700 Subject: [PATCH] test: assert cluster.disconnect is async See joyent/node#8043, test passed on v0.11 already, but this makes the test stronger. Reviewed-by: Trevor Norris --- test/simple/test-cluster-disconnect-with-no-workers.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/simple/test-cluster-disconnect-with-no-workers.js b/test/simple/test-cluster-disconnect-with-no-workers.js index b05be777e6..48e3b09259 100644 --- a/test/simple/test-cluster-disconnect-with-no-workers.js +++ b/test/simple/test-cluster-disconnect-with-no-workers.js @@ -31,3 +31,6 @@ process.on('exit', function() { cluster.disconnect(function() { disconnected = true; }); + +// Assert that callback is not sometimes synchronous +assert(!disconnected);