File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ describe('Collection (#findOneAnd...)', function () {
61
61
context ( 'when passing in writeConcern' , function ( ) {
62
62
let client ;
63
63
let collection ;
64
- const started : CommandStartedEvent [ ] = [ ] ;
64
+ let started : CommandStartedEvent [ ] = [ ] ;
65
65
66
66
beforeEach ( async function ( ) {
67
67
client = this . configuration . newClient ( { } , { maxPoolSize : 1 } ) ;
@@ -71,6 +71,7 @@ describe('Collection (#findOneAnd...)', function () {
71
71
} ) ;
72
72
73
73
afterEach ( async function ( ) {
74
+ started = [ ] ;
74
75
await collection . drop ( ) ;
75
76
await client ?. close ( ) ;
76
77
} ) ;
@@ -333,7 +334,7 @@ describe('Collection (#findOneAnd...)', function () {
333
334
context ( 'when passing in writeConcern' , function ( ) {
334
335
let client ;
335
336
let collection ;
336
- const started : CommandStartedEvent [ ] = [ ] ;
337
+ let started : CommandStartedEvent [ ] = [ ] ;
337
338
338
339
beforeEach ( async function ( ) {
339
340
client = this . configuration . newClient ( { } , { maxPoolSize : 1 , monitorCommands : true } ) ;
@@ -343,6 +344,7 @@ describe('Collection (#findOneAnd...)', function () {
343
344
} ) ;
344
345
345
346
afterEach ( async function ( ) {
347
+ started = [ ] ;
346
348
await collection . drop ( ) ;
347
349
await client ?. close ( ) ;
348
350
} ) ;
You can’t perform that action at this time.
0 commit comments