Skip to content

Commit 2af9e84

Browse files
committed
test: monitor commands
1 parent af6b290 commit 2af9e84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/manual/mongodb_oidc_azure.prose.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,14 @@ describe('OIDC Auth Spec Prose Tests', function () {
151151

152152
before(async function () {
153153
azureCache?.clear();
154-
client = new MongoClient(process.env.MONGODB_URI);
154+
client = new MongoClient(process.env.MONGODB_URI, { monitorCommands: true });
155155
await client.db('test').collection('test').findOne();
156156
addListeners();
157157
await setupFailPoint();
158158
});
159159

160-
after(async function () {
160+
afterEach(async function () {
161161
await removeFailPoint();
162-
await client.close();
163162
});
164163

165164
// Clear the Azure OIDC cache.

0 commit comments

Comments
 (0)