-
Notifications
You must be signed in to change notification settings - Fork 163
chore: retry the whole test with fixtures in case of error #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a retry mechanism to OIDC integration tests to improve test reliability. The change configures vitest to retry failed OIDC tests up to 5 times, which will re-run fixtures on each retry attempt.
Key Changes:
- Added
retry: 5configuration to OIDC test cases to handle transient failures
Pull Request Test Coverage Report for Build 18776932526Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
| 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) => { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Proposed changes
This adds a retry mechanism to OIDC tests in case the fail. It reuses the retry mechanism from vitest, which should also run fixtures.
Checklist