Skip to content

Commit 04602cd

Browse files
committed
test: fix util client
1 parent 12152ba commit 04602cd

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

test/integration/auth/mongodb_oidc.prose.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ describe('OIDC Auth Spec Tests', function () {
294294
// Close the client.
295295
beforeEach(async function () {
296296
client = getClient({}, callbackSpy);
297-
utilClient = getClient({}, callbackSpy);
297+
utilClient = getClient({}, createCallback());
298298
collection = client.db('test').collection('test');
299299
await utilClient
300300
.db()
@@ -379,7 +379,7 @@ describe('OIDC Auth Spec Tests', function () {
379379
// Close the client.
380380
beforeEach(async function () {
381381
client = getClient({}, callbackSpy);
382-
utilClient = getClient({}, callbackSpy);
382+
utilClient = getClient({}, createCallback());
383383
collection = client.db('test').collection('test');
384384
await utilClient
385385
.db()
@@ -435,7 +435,7 @@ describe('OIDC Auth Spec Tests', function () {
435435
// Close the client.
436436
beforeEach(async function () {
437437
client = getClient({ promoteValues: false }, callbackSpy);
438-
utilClient = getClient({ promoteValues: false }, callbackSpy);
438+
utilClient = getClient({ promoteValues: false }, createCallback());
439439
collection = client.db('test').collection('test');
440440
await utilClient
441441
.db()
@@ -628,7 +628,7 @@ describe('OIDC Auth Spec Tests', function () {
628628
// - Assert there were `SaslStart` commands executed.
629629
// - Close the client.
630630
beforeEach(async function () {
631-
utilClient = getClient({}, callbackSpy);
631+
utilClient = getClient({}, createCallback());
632632
client = getClient({ monitorCommands: true }, callbackSpy);
633633
client.on('commandStarted', event => {
634634
if (event.commandName === 'saslStart') {
@@ -706,7 +706,7 @@ describe('OIDC Auth Spec Tests', function () {
706706
// Close the session and the client.
707707
beforeEach(async function () {
708708
client = getClient({}, callbackSpy);
709-
utilClient = getClient({}, callbackSpy);
709+
utilClient = getClient({}, createCallback());
710710
collection = client.db('test').collection('test');
711711
await utilClient
712712
.db()

0 commit comments

Comments
 (0)