Skip to content

Commit

Permalink
test: assert cluster.disconnect is async
Browse files Browse the repository at this point in the history
See nodejs/node-v0.x-archive#8043, test passed on v0.11 already, but this makes the
test stronger.

Reviewed-by: Trevor Norris <trev.norris@gmail.com>
  • Loading branch information
sam-github authored and trevnorris committed Aug 2, 2014
1 parent bbb2dcc commit aab126b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/simple/test-cluster-disconnect-with-no-workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ process.on('exit', function() {
cluster.disconnect(function() {
disconnected = true;
});

// Assert that callback is not sometimes synchronous
assert(!disconnected);

0 comments on commit aab126b

Please sign in to comment.