Browse Source

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 <trev.norris@gmail.com>
archived-io.js-v0.10
Sam Roberts 11 years ago
committed by Trevor Norris
parent
commit
aab126bb06
  1. 3
      test/simple/test-cluster-disconnect-with-no-workers.js

3
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);

Loading…
Cancel
Save