Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
test: restoring test-dgram-bind-shared-ports to original
Restoring the contents of the test to it's original with common.PORT()

Refs: #12376
  • Loading branch information
orafaelfragoso committed May 13, 2017
commit 07d3bf86197750d79453974911369c7b1d6d3b92
11 changes: 4 additions & 7 deletions test/sequential/test-dgram-bind-shared-ports.js
Original file line number Diff line number Diff line change
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');
});
}));
});
}