Skip to content

Commit

Permalink
test: use dynamic port in test-cluster-dgram-reuse.js
Browse files Browse the repository at this point in the history
Remove common.PORT from test-cluster-dgram-reuse to eliminate possibility
that a dynamic port used in another test will collide with common.PORT.

Refs: nodejs#12376
  • Loading branch information
orafaelfragoso committed Apr 15, 2017
1 parent a6e4162 commit d5af03c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-cluster-dgram-reuse.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ function close() {
}

for (let i = 0; i < 2; i++)
dgram.createSocket({ type: 'udp4', reuseAddr: true }).bind(common.PORT, next);
dgram.createSocket({ type: 'udp4', reuseAddr: true }).bind(0, next);

0 comments on commit d5af03c

Please sign in to comment.