Skip to content

Commit bd3dc9d

Browse files
author
Matheus Marchini
committed
test: fix flaky test-child-process-fork-net
Patch inspired on 397eceb to fix flakyness on test-child-process-fork-net. Ref: #20973
1 parent 1dae526 commit bd3dc9d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/parallel/test-child-process-fork-net.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@ if (process.argv[2] === 'child') {
175175
connect.on('close', function() {
176176
console.log('CLIENT: closed');
177177
assert.strictEqual(store, 'echo');
178-
server.close();
178+
server.close((err) => {
179+
if (err && err.code !== 'EPIPE')
180+
throw err;
181+
});
179182
});
180183
});
181184
}

0 commit comments

Comments
 (0)