Skip to content

Commit 94e1c4a

Browse files
committed
test: fix human skip on non test env
1 parent 20b143c commit 94e1c4a

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

test/integration/auth/mongodb_oidc.prose.test.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -768,10 +768,12 @@ describe('OIDC Auth Spec Tests', function () {
768768
const uriSingle = process.env.MONGODB_URI_SINGLE;
769769
const uriMulti = process.env.MONGODB_URI_MULTI;
770770

771-
if (!isCallbackTest) {
772-
this.skipReason = 'OIDC human prose tests require a Test OIDC environment.';
773-
this.skip();
774-
}
771+
beforeEach(function () {
772+
if (!isCallbackTest) {
773+
this.skipReason = 'OIDC human prose tests require a Test OIDC environment.';
774+
this.skip();
775+
}
776+
});
775777

776778
describe('1. OIDC Human Callback Authentication', function () {
777779
let client: MongoClient;

0 commit comments

Comments
 (0)