Skip to content

Commit

Permalink
test: restoring test-dgram-bind-shared-ports to original
Browse files Browse the repository at this point in the history
Restoring the contents of the test to it's original with common.PORT()

Refs: #12376
  • Loading branch information
orafaelfragoso committed May 13, 2017
1 parent b59f704 commit 07d3bf8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/sequential/test-dgram-bind-shared-ports.js
Expand Up @@ -64,15 +64,12 @@ if (cluster.isMaster) {

socket1.bind({
address: 'localhost',
port: 0,
port: common.PORT,
exclusive: false
}, common.mustCall(() => {
socket2.bind({
port: socket1.address().port + 1,
exclusive: true
}, () => {
}, () => {
socket2.bind({ port: common.PORT + 1, exclusive: true }, () => {
// the first worker should succeed
process.send('success');
});
}));
});
}

0 comments on commit 07d3bf8

Please sign in to comment.