diff options
author | Sebastian Plesciuc <sebastian.plesciuc@sendgrid.com> | 2017-04-17 07:58:01 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2017-04-18 08:32:43 -0700 |
commit | 2519757b800a21c6b93490372841bc58307c46b7 (patch) | |
tree | ee0d7152522f95c4560f6366f17cb763b27ca6dc /test/parallel/test-cluster-worker-exit.js | |
parent | def78e8825a179593bd73b87b443fb3a991208e1 (diff) | |
download | android-node-v8-2519757b800a21c6b93490372841bc58307c46b7.tar.gz android-node-v8-2519757b800a21c6b93490372841bc58307c46b7.tar.bz2 android-node-v8-2519757b800a21c6b93490372841bc58307c46b7.zip |
test: use dynamic port in 3 test-cluster-worker tests
Remove common.PORT from test-cluster-worker-disconnect,
test-cluster-worker-exit and test-cluster-worker-kill to
eliminate the possibility that a dynamic port used in
another test will collide with common.PORT.
PR-URL: https://github.com/nodejs/node/pull/12443
Ref: https://github.com/nodejs/node/issues/12376
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel/test-cluster-worker-exit.js')
-rw-r--r-- | test/parallel/test-cluster-worker-exit.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-cluster-worker-exit.js b/test/parallel/test-cluster-worker-exit.js index 5d3df98f3b..db8835abe4 100644 --- a/test/parallel/test-cluster-worker-exit.js +++ b/test/parallel/test-cluster-worker-exit.js @@ -40,7 +40,7 @@ if (cluster.isWorker) { server.once('listening', common.mustCall(() => { process.exit(EXIT_CODE); })); - server.listen(common.PORT, '127.0.0.1'); + server.listen(0, '127.0.0.1'); } else if (cluster.isMaster) { |