Skip to content

Commit de45b94

Browse files
committed
chore: comments
1 parent e9cccad commit de45b94

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

test/integration/auth/mongodb_aws.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ describe('MONGODB-AWS', function () {
3030

3131
beforeEach(function () {
3232
if (!isMongoDBAWSAuthEnvironment) {
33-
this.currentTest.skipReason = 'requires MONGODB_URI to contain MONGODB-AWS auth mechanism';
34-
return this.skip();
33+
throw new Error('MONGODB-AWS auth tests can only run in an AWS environment.');
3534
}
3635
});
3736

test/integration/client-side-encryption/client_side_encryption.prose.26.custom_aws_credential_providers.test.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from 'chai';
22

33
/* eslint-disable @typescript-eslint/no-restricted-imports */
44
import { ClientEncryption } from '../../../src/client-side-encryption/client_encryption';
5-
import { AWSTemporaryCredentialProvider, Binary, MongoClient } from '../../mongodb';
5+
import { AWSSDKCredentialProvider, Binary, MongoClient } from '../../mongodb';
66
import { getEncryptExtraOptions } from '../../tools/utils';
77

88
const metadata: MongoDBMetadataUI = {
@@ -22,13 +22,8 @@ describe('26. Custom AWS Credential Providers', metadata, () => {
2222
let credentialProvider;
2323

2424
beforeEach(async function () {
25-
this.currentTest.skipReason = !AWSTemporaryCredentialProvider.isAWSSDKInstalled
26-
? 'This test must run in an environment where the AWS SDK is installed.'
27-
: undefined;
28-
this.currentTest?.skipReason && this.skip();
29-
3025
keyVaultClient = this.configuration.newClient(process.env.MONGODB_UR);
31-
credentialProvider = AWSTemporaryCredentialProvider.awsSDK;
26+
credentialProvider = AWSSDKCredentialProvider.awsSDK;
3227
});
3328

3429
afterEach(async () => {

0 commit comments

Comments
 (0)