Skip to content

Commit

Permalink
test: remove common.PORT from test-cluster*.js
Browse files Browse the repository at this point in the history
PR-URL: #12441
Ref: #12376
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
tarunbatra authored and evanlucas committed May 2, 2017
1 parent d0ba631 commit a7e13e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-disconnect-leak.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ if (cluster.isMaster) {

const server = net.createServer();

server.listen(common.PORT);
server.listen(0);
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-disconnect-race.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ if (cluster.isMaster) {

const server = net.createServer();

server.listen(common.PORT, function() {
server.listen(0, function() {
process.send('listening');
});
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-process-disconnect.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (cluster.isMaster) {
} else {
const net = require('net');
const server = net.createServer();
server.listen(common.PORT, common.mustCall(() => {
server.listen(0, common.mustCall(() => {
process.disconnect();
}));
}

0 comments on commit a7e13e0

Please sign in to comment.