Skip to content

Commit

Permalink
test: replace Map with Array in test-cluster-net-listen-ipv6only-false
Browse files Browse the repository at this point in the history
Signed-off-by: Rich Trott <rtrott@gmail.com>

PR-URL: #32398
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
Trott authored and addaleax committed Mar 30, 2020
1 parent 09cd744 commit 11d7cf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-cluster-net-listen-ipv6only-false.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const host = '::';
const WORKER_COUNT = 3;

if (cluster.isMaster) {
const workers = new Map();
const workers = [];
let address;

const countdown = new Countdown(WORKER_COUNT, () => {
Expand Down Expand Up @@ -45,7 +45,7 @@ if (cluster.isMaster) {
countdown.dec();
}));

workers.set(i, worker);
workers[i] = worker;
}
} else {
net.createServer().listen({
Expand Down

0 comments on commit 11d7cf1

Please sign in to comment.