diff options
author | Anatoli Papirovski <apapirovski@mac.com> | 2018-01-02 12:09:45 -0500 |
---|---|---|
committer | Myles Borins <mylesborins@google.com> | 2018-02-12 19:28:33 -0500 |
commit | 0c3f23ef59e4ea5f9b723f7ca6dd9f812a5047ae (patch) | |
tree | b9d51bcde741867cdbab17dab5d85efe426e9b6d | |
parent | 9e760285de21b696725506ec019dd068cd8fe29e (diff) | |
download | node-new-0c3f23ef59e4ea5f9b723f7ca6dd9f812a5047ae.tar.gz |
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>
-rw-r--r-- | test/parallel/test-pipe-unref.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-pipe-unref.js b/test/parallel/test-pipe-unref.js index 17caa01ef0..cfe7a97ca5 100644 --- a/test/parallel/test-pipe-unref.js +++ b/test/parallel/test-pipe-unref.js @@ -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(); |