summaryrefslogtreecommitdiff
path: root/test/parallel/test-cluster-http-pipe.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-cluster-http-pipe.js')
-rw-r--r--test/parallel/test-cluster-http-pipe.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/parallel/test-cluster-http-pipe.js b/test/parallel/test-cluster-http-pipe.js
index 8ea634b303..0d6cb422be 100644
--- a/test/parallel/test-cluster-http-pipe.js
+++ b/test/parallel/test-cluster-http-pipe.js
@@ -13,18 +13,13 @@ if (common.isWindows) {
if (cluster.isMaster) {
common.refreshTmpDir();
- var ok = false;
var worker = cluster.fork();
- worker.on('message', function(msg) {
+ worker.on('message', common.mustCall(function(msg) {
assert.equal(msg, 'DONE');
- ok = true;
- });
+ }));
worker.on('exit', function() {
process.exit();
});
- process.on('exit', function() {
- assert(ok);
- });
return;
}