Skip to content

Commit f2f232e

Browse files
fix hack
1 parent 08763f7 commit f2f232e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/unit/api.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ function initialize() {
2222
db = new mongodbLegacy.Db(client, 'animals');
2323
collection = new mongodbLegacy.Collection(db, 'pets', {});
2424
namespace = MongoDBNamespace.fromString('animals.pets');
25+
26+
// TODO(NODE-6712): remove this workaround.
27+
client.connect();
2528
}
2629

2730
// A map to helpers that can create instances of the overridden classes for testing

0 commit comments

Comments
 (0)