Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c75dd8b

Browse files
tarunbatraevanlucas
authored andcommittedApr 25, 2017
test: remove common.PORT from test-cluster*.js
PR-URL: #12441 Ref: #12376 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Santiago Gimeno <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent ff8d9f8 commit c75dd8b

3 files changed

+3
-3
lines changed
 

‎test/parallel/test-cluster-disconnect-leak.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ if (cluster.isMaster) {
2626

2727
const server = net.createServer();
2828

29-
server.listen(common.PORT);
29+
server.listen(0);

‎test/parallel/test-cluster-disconnect-race.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ if (cluster.isMaster) {
3434

3535
const server = net.createServer();
3636

37-
server.listen(common.PORT, function() {
37+
server.listen(0, function() {
3838
process.send('listening');
3939
});

‎test/parallel/test-cluster-process-disconnect.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (cluster.isMaster) {
1212
} else {
1313
const net = require('net');
1414
const server = net.createServer();
15-
server.listen(common.PORT, common.mustCall(() => {
15+
server.listen(0, common.mustCall(() => {
1616
process.disconnect();
1717
}));
1818
}

0 commit comments

Comments
 (0)
Please sign in to comment.