Skip to content

Commit

Permalink
test: fix flaky test-child-process-fork-net
Browse files Browse the repository at this point in the history
Patch inspired on 397eceb to fix
flakyness on test-child-process-fork-net.

Ref: nodejs#20973
  • Loading branch information
Matheus Marchini committed May 29, 2018
1 parent 1dae526 commit bd3dc9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/parallel/test-child-process-fork-net.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ if (process.argv[2] === 'child') {
connect.on('close', function() {
console.log('CLIENT: closed');
assert.strictEqual(store, 'echo');
server.close();
server.close((err) => {
if (err && err.code !== 'EPIPE')
throw err;
});
});
});
}
Expand Down

0 comments on commit bd3dc9d

Please sign in to comment.