We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a346f6 commit 1b79174Copy full SHA for 1b79174
2 files changed
test/sequential/test-cluster-net-listen-ipv6only-none.js
@@ -16,7 +16,7 @@ const host = '::';
16
const WORKER_ACCOUNT = 3;
17
18
if (cluster.isMaster) {
19
- const workers = new Map();
+ const workers = [];
20
21
const countdown = new Countdown(WORKER_ACCOUNT, () => {
22
// Make sure the `ipv6Only` option works. This is the part of the test that
@@ -46,7 +46,7 @@ if (cluster.isMaster) {
46
countdown.dec();
47
}));
48
49
- workers.set(i, worker);
+ workers[i] = worker;
50
}
51
} else {
52
net.createServer().listen({
test/sequential/test-cluster-net-listen-ipv6only-rr.js
let address;
@@ -45,7 +45,7 @@ if (cluster.isMaster) {
45
// As the cluster member has the potential to grab any port
0 commit comments