Skip to content

Commit

Permalink
Revert "test: wrap functions containing assertions inside a `common.m…
Browse files Browse the repository at this point in the history
…ustCall`"

This reverts commit 6eab88a71332e79825cd719dbc907564a2bfaec5.
  • Loading branch information
sagirk committed Nov 22, 2018
1 parent 28a3b93 commit fed582b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/parallel/test-cluster-send-deadlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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({
Expand All @@ -69,5 +69,5 @@ if (cluster.isMaster) {
} else {
process.send('reply', handle);
}
}));
});
}

0 comments on commit fed582b

Please sign in to comment.