summaryrefslogtreecommitdiff
path: root/test/async-hooks/test-tcpwrap.js
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2017-11-22 14:39:38 -0800
committerRich Trott <rtrott@gmail.com>2017-12-05 00:07:27 -0800
commite18390032e6cdf35c0a62e0c6da8c6d53b8c4f38 (patch)
tree70ae08309284ec937ac4068a918423608bb03f5e /test/async-hooks/test-tcpwrap.js
parent35c01d84a837c4f57b0bac04e27c58c86d2f8c91 (diff)
downloadandroid-node-v8-e18390032e6cdf35c0a62e0c6da8c6d53b8c4f38.tar.gz
android-node-v8-e18390032e6cdf35c0a62e0c6da8c6d53b8c4f38.tar.bz2
android-node-v8-e18390032e6cdf35c0a62e0c6da8c6d53b8c4f38.zip
test: remove common.PORT from parallel tests
`common.PORT` should not be used in parallel tests because another test may experience a collision with `common.PORT` when using port 0 to get an open port. This has been observed to result in test failures in CI. PR-URL: https://github.com/nodejs/node/pull/17410 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Lance Ball <lball@redhat.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'test/async-hooks/test-tcpwrap.js')
-rw-r--r--test/async-hooks/test-tcpwrap.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/async-hooks/test-tcpwrap.js b/test/async-hooks/test-tcpwrap.js
index e7d879caf7..f3100aba0f 100644
--- a/test/async-hooks/test-tcpwrap.js
+++ b/test/async-hooks/test-tcpwrap.js
@@ -24,7 +24,7 @@ const server = net
// Calling server.listen creates a TCPWRAP synchronously
{
- server.listen(common.PORT);
+ server.listen(0);
const tcpsservers = hooks.activitiesOfTypes('TCPSERVERWRAP');
const tcpconnects = hooks.activitiesOfTypes('TCPCONNECTWRAP');
assert.strictEqual(tcpsservers.length, 1);