Skip to content

Commit 48d897e

Browse files
committed
test: fix unit test
1 parent 418fc4e commit 48d897e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/unit/cmap/auth/mongodb_oidc/callback_lock_cache.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('CallbackLockCache', function () {
2525

2626
it('raises an error', function () {
2727
try {
28-
cache.getCallbacks(connection, credentials);
28+
cache.getEntry(connection, credentials);
2929
expect.fail('Must raise error when no request callback exists.');
3030
} catch (error) {
3131
expect(error).to.be.instanceOf(MongoInvalidArgumentError);
@@ -71,7 +71,7 @@ describe('CallbackLockCache', function () {
7171
}
7272
});
7373
const cache = new CallbackLockCache();
74-
const { requestCallback, refreshCallback, callbackHash } = cache.getCallbacks(
74+
const { requestCallback, refreshCallback, callbackHash } = cache.getEntry(
7575
connection,
7676
credentials
7777
);
@@ -120,7 +120,7 @@ describe('CallbackLockCache', function () {
120120
}
121121
});
122122
const cache = new CallbackLockCache();
123-
const { requestCallback, refreshCallback, callbackHash } = cache.getCallbacks(
123+
const { requestCallback, refreshCallback, callbackHash } = cache.getEntry(
124124
connection,
125125
credentials
126126
);

0 commit comments

Comments
 (0)