Skip to content

Commit a6098f2

Browse files
authored
test(NODE-7143): fix runner on node 20 (#4762)
1 parent 3c35d68 commit a6098f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/tools/unified-spec-runner/entities.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -629,9 +629,10 @@ export class EntitiesMap<E = Entity> extends Map<string, E> {
629629
if (entity.client.awaitMinPoolSizeMS) {
630630
if (client.topology?.s?.servers) {
631631
const timeout = Timeout.expires(entity.client.awaitMinPoolSizeMS);
632-
const poolSizeChecks = client.topology.s.servers
633-
.values()
634-
.map(server => checkMinPoolSize(server.pool));
632+
const servers = client.topology.s.servers.values();
633+
const poolSizeChecks = Array.from(servers).map(server =>
634+
checkMinPoolSize(server.pool)
635+
);
635636
try {
636637
await Promise.race([Promise.allSettled(poolSizeChecks), timeout]);
637638
} catch (error) {

0 commit comments

Comments
 (0)