Skip to content

Commit 5d18bf4

Browse files
committed
test: bring back skip
1 parent de45b94 commit 5d18bf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/auth/mongodb_aws.test.ts

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

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

0 commit comments

Comments
 (0)