mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
test: fix flaky test-pipe-unref
PR-URL: https://github.com/nodejs/node/pull/17950 Fixes: https://github.com/nodejs/node/issues/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>
This commit is contained in:
1 parent
79980582b4
commit
3399e8ac5a
1 file changed
+2
-2
@@ -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();
|
||||
Reference in new issue
Block a user