Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/integration/common/connectionManager.oidc.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,15 @@ describe.skipIf(process.platform !== "linux")("ConnectionManager OIDC Tests", as
(integration) => {
function oidcIt(name: string, cb: Parameters<OidcIt>[1]): void {
/* eslint-disable vitest/expect-expect */
it(name, { timeout: DEFAULT_TIMEOUT }, async (context) => {
it(name, { timeout: DEFAULT_TIMEOUT, retry: 5 }, async (context) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there some wait time for this? would it make sense to introduce some wait on retries?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vitest doesn't support wait time :( https://vitest.dev/api/#test-api-reference

context.skip(
await isCommunityServer(integration),
"OIDC is not supported in MongoDB Community"
);
context.skip(
semver.satisfies(await getServerVersion(integration), "< 7", { includePrerelease: true }),
semver.satisfies(await getServerVersion(integration), "< 7", {
includePrerelease: true,
}),
"OIDC is only supported on MongoDB newer than 7.0"
);

Expand Down
Loading