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 <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
apapirovski authored and MylesBorins committed Feb 11, 2018
1 parent f0060ba commit 193844f
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 193844f

Please sign in to comment.