Skip to content

Commit 21c2a02

Browse files
committed
chore: retry the whole test with fixtures in case of error
1 parent 567d497 commit 21c2a02

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/common/connectionManager.oidc.test.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,15 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
107107
(integration) => {
108108
function oidcIt(name: string, cb: Parameters<OidcIt>[1]): void {
109109
/* eslint-disable vitest/expect-expect */
110-
it(name, { timeout: DEFAULT_TIMEOUT }, async (context) => {
110+
it(name, { timeout: DEFAULT_TIMEOUT, retry: 5 }, async (context) => {
111111
context.skip(
112112
await isCommunityServer(integration),
113113
"OIDC is not supported in MongoDB Community"
114114
);
115115
context.skip(
116-
semver.satisfies(await getServerVersion(integration), "< 7", { includePrerelease: true }),
116+
semver.satisfies(await getServerVersion(integration), "< 7", {
117+
includePrerelease: true,
118+
}),
117119
"OIDC is only supported on MongoDB newer than 7.0"
118120
);
119121

0 commit comments

Comments
 (0)