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:
Sam Roberts 2014-07-31 16:49:28 -07:00 committed by Trevor Norris
parent bbb2dccd1b
commit aab126bb06

View File

@ -31,3 +31,6 @@ process.on('exit', function() {
cluster.disconnect(function() {
disconnected = true;
});
// Assert that callback is not sometimes synchronous
assert(!disconnected);