Skip to content

Commit

Permalink
jest.retryTimes(2) for flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Jun 15, 2024
1 parent b530ea8 commit 0d087d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/v3/test/integration/flow-okta-verify-enrollment.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import smsPollingResponse from '../../src/mocks/response/idp/idx/challenge/send/
import emailChannelSelectionMockResponse from '../../src/mocks/response/idp/idx/credential/enroll/enroll-ov-email-channel.json';
import smsChannelSelectionMockResponse from '../../src/mocks/response/idp/idx/credential/enroll/enroll-ov-sms-channel.json';

jest.retryTimes(2);

const createTestContext = async () => {
const mockRequestClient: HttpRequestClient = jest.fn().mockImplementation((_, url, options) => {
updateStateHandleInMock(qrPollingResponse);
Expand Down
2 changes: 2 additions & 0 deletions test/unit/spec/v1/EnrollSms_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import $sandbox from 'sandbox';
import LoginUtil from 'util/Util';
const itp = Expect.itp;

jest.retryTimes(2);

Expect.describe('EnrollSms', function() {
function setup(resp, startRouter, routerOptions = {}) {
const setNextResponse = Util.mockAjax();
Expand Down

0 comments on commit 0d087d5

Please sign in to comment.