Skip to content

Commit a9b048f

Browse files
committed
pr feedback
1 parent 848bff1 commit a9b048f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/integration/node-specific/convert_socket_errors.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ describe('Socket Errors', () => {
8888
await client.connect();
8989
const db = client.db('closeConn');
9090
collection = db.collection('closeConn');
91-
const docs = Array.from({ length: 128 }).map((_, index) => ({ foo: index, bar: 1 }));
9291
await collection.deleteMany({});
93-
await collection.insertMany(docs);
9492

9593
for (const [, server] of client.topology.s.servers) {
9694
//@ts-expect-error: private property
@@ -130,7 +128,7 @@ describe('Socket Errors', () => {
130128
// call find, fail once, succeed on retry
131129
const item = await collection.findOne({});
132130
// check that an object was returned
133-
expect(item).to.exist;
131+
expect(item).to.be.null;
134132
expect(errorCount).to.be.equal(initialErrorCount + 1);
135133
// check that we have the expected command monitoring events
136134
expect(commandStartedEvents).to.have.length(2);

0 commit comments

Comments
 (0)