mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
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>
This commit is contained in:
parent
bbb2dccd1b
commit
aab126bb06
@ -31,3 +31,6 @@ process.on('exit', function() {
|
||||
cluster.disconnect(function() {
|
||||
disconnected = true;
|
||||
});
|
||||
|
||||
// Assert that callback is not sometimes synchronous
|
||||
assert(!disconnected);
|
||||
|
Loading…
Reference in New Issue
Block a user