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 MylesBorins committed Jan 24, 2018
1 parent 5eadfc8 commit 9fcf4d0
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 9fcf4d0

Please sign in to comment.