diff --git a/test/sequential/test-cluster-net-listen-ipv6only-none.js b/test/sequential/test-cluster-net-listen-ipv6only-none.js index d520b7f25ccf30..9efcece5bdba15 100644 --- a/test/sequential/test-cluster-net-listen-ipv6only-none.js +++ b/test/sequential/test-cluster-net-listen-ipv6only-none.js @@ -16,7 +16,7 @@ const host = '::'; const WORKER_ACCOUNT = 3; if (cluster.isMaster) { - const workers = new Map(); + const workers = []; const countdown = new Countdown(WORKER_ACCOUNT, () => { // Make sure the `ipv6Only` option works. This is the part of the test that @@ -46,7 +46,7 @@ if (cluster.isMaster) { countdown.dec(); })); - workers.set(i, worker); + workers[i] = worker; } } else { net.createServer().listen({ diff --git a/test/sequential/test-cluster-net-listen-ipv6only-rr.js b/test/sequential/test-cluster-net-listen-ipv6only-rr.js index a42be88ddf17f0..ba1ea97a27636b 100644 --- a/test/sequential/test-cluster-net-listen-ipv6only-rr.js +++ b/test/sequential/test-cluster-net-listen-ipv6only-rr.js @@ -16,7 +16,7 @@ const host = '::'; const WORKER_ACCOUNT = 3; if (cluster.isMaster) { - const workers = new Map(); + const workers = []; let address; const countdown = new Countdown(WORKER_ACCOUNT, () => { @@ -45,7 +45,7 @@ if (cluster.isMaster) { countdown.dec(); })); - workers.set(i, worker); + workers[i] = worker; } } else { // As the cluster member has the potential to grab any port