Skip to content

Commit 619bdc1

Browse files
mockServerIsSetup -> isMockServerSetup
1 parent 76ff443 commit 619bdc1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/integration/client-side-encryption/client_side_encryption.prose.18.azure_kms_mock_server.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Document } from '../../mongodb';
55

66
const BASE_URL = new URL(`http://127.0.0.1:8080/metadata/identity/oauth2/token`);
77

8-
async function mockServerIsSetup() {
8+
async function isMockServerSetup() {
99
const url = (() => {
1010
const copiedURL = new URL(BASE_URL);
1111

@@ -49,7 +49,7 @@ context('Azure KMS Mock Server Tests', function () {
4949
const AZURE_KMS_TEST_EXPORTS = '___azureKMSProseTestExports';
5050
beforeEach(async function () {
5151
try {
52-
await mockServerIsSetup();
52+
await isMockServerSetup();
5353
} catch {
5454
this.currentTest.skipReason = 'Test requires mock azure identity endpoint to be running.';
5555
this.test?.skip();
@@ -88,9 +88,7 @@ context('Azure KMS Mock Server Tests', function () {
8888
// The test case should ensure that this error condition is handled gracefully.
8989

9090
it('returns an error', async () => {
91-
const error = await fetchAzureKMSToken(new KMSRequestOptions('empty-json')).catch(
92-
e => e
93-
);
91+
const error = await fetchAzureKMSToken(new KMSRequestOptions('empty-json')).catch(e => e);
9492

9593
expect(credentials).to.be.instanceof(KMSRequestFailedError);
9694
});

0 commit comments

Comments
 (0)