Skip to content

Commit 5ebbbac

Browse files
test(NODE-7182): replace .insert with .insertOne
Co-authored-by: Bailey Pearson <[email protected]>
1 parent b49430e commit 5ebbbac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/connection-monitoring-and-pooling/connection.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ describe('Connection', function () {
188188

189189
const db = client.db(configuration.db);
190190

191-
await db.collection('domainSocketCollection0').insert({ a: 1 }, { writeConcern: { w: 1 } });
191+
await db.collection('domainSocketCollection0').insertOne({ a: 1 }, { writeConcern: { w: 1 } });
192192

193193
const items = await db.collection('domainSocketCollection0').find({ a: 1 }).toArray();
194194
test.equal(1, items.length);

0 commit comments

Comments
 (0)