From fed582b56aa7d4b0233ce90b851c486dc41372e1 Mon Sep 17 00:00:00 2001 From: sagirk Date: Wed, 21 Nov 2018 16:29:03 +0530 Subject: [PATCH] Revert "test: wrap functions containing assertions inside a `common.mustCall`" This reverts commit 6eab88a71332e79825cd719dbc907564a2bfaec5. --- test/parallel/test-cluster-send-deadlock.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-cluster-send-deadlock.js b/test/parallel/test-cluster-send-deadlock.js index 8c190bcdb09549..b34eb892adb464 100644 --- a/test/parallel/test-cluster-send-deadlock.js +++ b/test/parallel/test-cluster-send-deadlock.js @@ -23,7 +23,7 @@ // Testing mutual send of handles: from master to worker, and from worker to // master. -const common = require('../common'); +require('../common'); const assert = require('assert'); const cluster = require('cluster'); const net = require('net'); @@ -44,7 +44,7 @@ if (cluster.isMaster) { worker.send({ message: 'listen', port: server.address().port }); }); } else { - process.on('message', common.mustCall((msg, handle) => { + process.on('message', (msg, handle) => { if (msg.message && msg.message === 'listen') { assert(msg.port); const client1 = net.connect({ @@ -69,5 +69,5 @@ if (cluster.isMaster) { } else { process.send('reply', handle); } - })); + }); }