Skip to content

Commit 6197f4f

Browse files
committed
Revert "test: dont connect client"
This reverts commit 8021743.
1 parent 9b4bb6e commit 6197f4f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ export class EntitiesMap<E = Entity> extends Map<string, E> {
621621
const client = new UnifiedMongoClient(uri, entity.client, config);
622622
try {
623623
new EntityEventRegistry(client, entity.client, map).register();
624+
await client.connect();
624625
} catch (error) {
626+
console.error('failed to connect entity', entity);
625627
// In the case where multiple clients are defined in the test and any one of them failed
626628
// to connect, but others did succeed, we need to ensure all open clients are closed.
627629
const clients = map.mapOf('client');

0 commit comments

Comments
 (0)