Skip to content

Commit 7cc9d64

Browse files
authored
feat: change browser, scripted and multihttp timeouts up to 180s (#1075)
1 parent 012c374 commit 7cc9d64

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

‎src/components/CheckForm/CheckForm.constants.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ const CheckTimeoutValues = {
77
[CheckType.DNS]: { min: 1, max: 60 },
88
[CheckType.GRPC]: { min: 1, max: 60 },
99
[CheckType.HTTP]: { min: 1, max: 60 },
10-
[CheckType.MULTI_HTTP]: { min: 5, max: 120 },
11-
[CheckType.Scripted]: { min: 5, max: 120 },
12-
[CheckType.Browser]: { min: 5, max: 120 },
10+
[CheckType.MULTI_HTTP]: { min: 5, max: 180 },
11+
[CheckType.Scripted]: { min: 5, max: 180 },
12+
[CheckType.Browser]: { min: 5, max: 180 },
1313
};
1414

1515
export { CheckTimeoutValues };

‎src/page/NewCheck/__tests__/BrowserChecks/Scripted/5-execution.payload.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ describe(`BrowserCheck - Section 5 (Execution) payload`, () => {
3939
expect(body.frequency).toBe(ONE_MINUTE_IN_MS);
4040
});
4141

42-
it(`can add timeout up to 120 seconds`, async () => {
43-
const MAX_TIMEOUT_MS = 120000;
42+
it(`can add timeout up to 180 seconds`, async () => {
43+
const MAX_TIMEOUT_MS = 180000;
4444

4545
const { user, read } = await renderNewForm(checkType);
4646
await fillMandatoryFields({ user, checkType });

‎src/page/NewCheck/__tests__/MultiStepChecks/MultiHTTP/5-execution.payload.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ describe(`MultiHTTPCheck - Section 5 (Execution) payload`, () => {
3939
expect(body.frequency).toBe(ONE_MINUTE_IN_MS);
4040
});
4141

42-
it(`can add timeout up to 120 seconds`, async () => {
43-
const MAX_TIMEOUT_MS = 120000;
42+
it(`can add timeout up to 180 seconds`, async () => {
43+
const MAX_TIMEOUT_MS = 180000;
4444

4545
const { user, read } = await renderNewForm(checkType);
4646
await fillMandatoryFields({ user, checkType });

‎src/page/NewCheck/__tests__/NewCheck.journey.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ describe(`<NewCheck /> journey`, () => {
246246

247247
const errorMsg = await screen.findByRole('alert');
248248
expect(errorMsg).toBeInTheDocument();
249-
expect(errorMsg).toHaveTextContent(/Frequency must be greater than or equal to timeout \(120 seconds\)/);
249+
expect(errorMsg).toHaveTextContent(/Frequency must be greater than or equal to timeout \(180 seconds\)/);
250250
});
251251

252252
// jsdom doesn't give us back the submitter of the form, so we can't test this

‎src/page/NewCheck/__tests__/ScriptedChecks/Scripted/5-execution.payload.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ describe(`ScriptedCheck - Section 5 (Execution) payload`, () => {
3939
expect(body.frequency).toBe(ONE_MINUTE_IN_MS);
4040
});
4141

42-
it(`can add timeout up to 120 seconds`, async () => {
43-
const MAX_TIMEOUT_MS = 120000;
42+
it(`can add timeout up to 180 seconds`, async () => {
43+
const MAX_TIMEOUT_MS = 180000;
4444

4545
const { user, read } = await renderNewForm(checkType);
4646
await fillMandatoryFields({ user, checkType });

0 commit comments

Comments
 (0)