Skip to content

Commit 07d3bf8

Browse files
test: restoring test-dgram-bind-shared-ports to original
Restoring the contents of the test to it's original with common.PORT() Refs: #12376
1 parent b59f704 commit 07d3bf8

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

test/sequential/test-dgram-bind-shared-ports.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,12 @@ if (cluster.isMaster) {
6464

6565
socket1.bind({
6666
address: 'localhost',
67-
port: 0,
67+
port: common.PORT,
6868
exclusive: false
69-
}, common.mustCall(() => {
70-
socket2.bind({
71-
port: socket1.address().port + 1,
72-
exclusive: true
73-
}, () => {
69+
}, () => {
70+
socket2.bind({ port: common.PORT + 1, exclusive: true }, () => {
7471
// the first worker should succeed
7572
process.send('success');
7673
});
77-
}));
74+
});
7875
}

0 commit comments

Comments
 (0)