Skip to content

Commit

Permalink
test: fix flaky test-pipe-unref
Browse files Browse the repository at this point in the history
PR-URL: #17950
Fixes: #16875
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
apapirovski authored and BridgeAR committed Jan 5, 2018
1 parent 9cef060 commit c043b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-pipe-unref.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
const common = require('../common');
const net = require('net');

// This test should end immediately after `unref` is called

common.refreshTmpDir();

const s = net.Server();
s.listen(common.PIPE);
s.unref();

setTimeout(common.mustNotCall(), 1000).unref();

0 comments on commit c043b82

Please sign in to comment.