Skip to content

Commit a75e9aa

Browse files
force drop db
1 parent 665e040 commit a75e9aa

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/integration/crud/crud.prose.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ describe('CRUD Prose Spec Tests', () => {
160160
client = this.configuration.newClient({}, { monitorCommands: true });
161161
await client.connect();
162162

163+
await client.db('explain-test').dropDatabase();
163164
collection = await client.db('explain-test').createCollection('collection');
164165

165166
client.on('commandStarted', filterForCommands('explain', commands));

test/integration/crud/explain.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import {
77
type CommandStartedEvent,
88
type Db,
99
type MongoClient,
10-
MongoServerError
10+
MongoServerError,
11+
squashError
1112
} from '../../mongodb';
1213
import { filterForCommands } from '../shared';
1314

@@ -129,6 +130,7 @@ describe('CRUD API explain option', function () {
129130
client = this.configuration.newClient({}, { monitorCommands: true });
130131
await client.connect();
131132

133+
await client.db('explain-test').dropDatabase();
132134
collection = await client.db('explain-test').createCollection('bar');
133135

134136
client.on('commandStarted', filterForCommands('explain', commands));

0 commit comments

Comments
 (0)