Skip to content

Commit e32475a

Browse files
committed
fixup
1 parent 53a63cc commit e32475a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-cluster-shared-leak.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (cluster.isMaster) {
1717
worker2 = cluster.fork();
1818
conn = net.connect(common.PORT, common.mustCall(function() {
1919
worker1.disconnect();
20-
worker2.disconnect();
20+
worker2.on('online', common.mustCall(worker2.disconnect));
2121
}));
2222
conn.on('error', function(e) {
2323
// ECONNRESET is OK

0 commit comments

Comments
 (0)