Skip to content

Commit e9cccad

Browse files
committed
fix: tests
1 parent 7304022 commit e9cccad

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/integration/auth/mongodb_aws.test.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -479,15 +479,8 @@ describe('MONGODB-AWS', function () {
479479
it('fetching AWS KMS credentials throws an error', async function () {
480480
const result = await refreshKMSCredentials({ aws: {} }).catch(e => e);
481481

482-
// TODO(NODE-7046): Remove branch when removing support for AWS credentials in URI.
483-
// The drivers tools scripts put the credentials in the URI currently for some environments,
484-
// this will need to change when doing the DRIVERS-3131 work.
485-
if (!client.options.credentials.username) {
486-
expect(result).to.be.instanceof(MongoAWSError);
487-
expect(result.message).to.match(/credential-providers/);
488-
} else {
489-
expect(result).to.equal(0);
490-
}
482+
expect(result).to.be.instanceof(MongoAWSError);
483+
expect(result.message).to.match(/credential-providers/);
491484
});
492485
});
493486

0 commit comments

Comments
 (0)