Skip to content

Commit 85a6865

Browse files
committed
chore: increase timeout for slow tests and extract retries to a constant
1 parent 901d837 commit 85a6865

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import type { OIDCMockProviderConfig } from "@mongodb-js/oidc-mock-provider";
1313
import { OIDCMockProvider } from "@mongodb-js/oidc-mock-provider";
1414
import { type TestConnectionManager } from "../../utils/index.js";
1515

16-
const DEFAULT_TIMEOUT = 30_000;
16+
const DEFAULT_TIMEOUT = 60_000;
17+
const DEFAULT_RETRIES = 5;
1718

1819
// OIDC is only supported on Linux servers
1920
describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", async () => {
@@ -107,7 +108,7 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
107108
(integration) => {
108109
function oidcIt(name: string, cb: Parameters<OidcIt>[1]): void {
109110
/* eslint-disable vitest/expect-expect */
110-
it(name, { timeout: DEFAULT_TIMEOUT, retry: 5 }, async (context) => {
111+
it(name, { timeout: DEFAULT_TIMEOUT, retry: DEFAULT_RETRIES }, async (context) => {
111112
context.skip(
112113
await isCommunityServer(integration),
113114
"OIDC is not supported in MongoDB Community"

0 commit comments

Comments
 (0)