Skip to content

Commit 440b851

Browse files
authored
feat: increase test session timeout (#954)
1 parent 7e9363c commit 440b851

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: packages/cli/src/commands/trigger.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { loadChecklyConfig } from '../services/checkly-config-loader'
77
import { splitConfigFilePath, getEnvs, getGitInformation, getCiInformation } from '../services/util'
88
import type { Region } from '..'
99
import TriggerRunner, { NoMatchingChecksError } from '../services/trigger-runner'
10-
import { RunLocation, Events, PrivateRunLocation, CheckRunId } from '../services/abstract-check-runner'
10+
import { RunLocation, Events, PrivateRunLocation, CheckRunId, DEFAULT_CHECK_RUN_TIMEOUT_SECONDS } from '../services/abstract-check-runner'
1111
import config from '../services/config'
1212
import { createReporters, ReporterType } from '../reporters/reporter'
1313
import { TestResultsShortLinks } from '../rest/test-sessions'
@@ -42,7 +42,7 @@ export default class Trigger extends AuthCommand {
4242
description: 'The Checkly CLI config filename.',
4343
}),
4444
timeout: Flags.integer({
45-
default: 240,
45+
default: DEFAULT_CHECK_RUN_TIMEOUT_SECONDS,
4646
description: 'A timeout (in seconds) to wait for checks to complete.',
4747
}),
4848
verbose: Flags.boolean({

Diff for: packages/cli/src/services/abstract-check-runner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type RunLocation = PublicRunLocation | PrivateRunLocation
3333

3434
export type CheckRunId = string
3535

36-
export const DEFAULT_CHECK_RUN_TIMEOUT_SECONDS = 300
36+
export const DEFAULT_CHECK_RUN_TIMEOUT_SECONDS = 600
3737

3838
const DEFAULT_SCHEDULING_DELAY_EXCEEDED_MS = 20000
3939

0 commit comments

Comments
 (0)