Skip to content

Commit 6cbbb7d

Browse files
committed
test: mode fixes
1 parent c0835a0 commit 6cbbb7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/integration/crud/find_and_modify.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Collection (#findOneAnd...)', function () {
6161
context('when passing in writeConcern', function () {
6262
let client;
6363
let collection;
64-
const started: CommandStartedEvent[] = [];
64+
let started: CommandStartedEvent[] = [];
6565

6666
beforeEach(async function () {
6767
client = this.configuration.newClient({}, { maxPoolSize: 1 });
@@ -71,6 +71,7 @@ describe('Collection (#findOneAnd...)', function () {
7171
});
7272

7373
afterEach(async function () {
74+
started = [];
7475
await collection.drop();
7576
await client?.close();
7677
});
@@ -333,7 +334,7 @@ describe('Collection (#findOneAnd...)', function () {
333334
context('when passing in writeConcern', function () {
334335
let client;
335336
let collection;
336-
const started: CommandStartedEvent[] = [];
337+
let started: CommandStartedEvent[] = [];
337338

338339
beforeEach(async function () {
339340
client = this.configuration.newClient({}, { maxPoolSize: 1, monitorCommands: true });
@@ -343,6 +344,7 @@ describe('Collection (#findOneAnd...)', function () {
343344
});
344345

345346
afterEach(async function () {
347+
started = [];
346348
await collection.drop();
347349
await client?.close();
348350
});

0 commit comments

Comments
 (0)