Skip to content

Commit

Permalink
feat: increase test session timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
clample committed Jul 19, 2024
1 parent 7e9363c commit 270ec5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/trigger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { loadChecklyConfig } from '../services/checkly-config-loader'
import { splitConfigFilePath, getEnvs, getGitInformation, getCiInformation } from '../services/util'
import type { Region } from '..'
import TriggerRunner, { NoMatchingChecksError } from '../services/trigger-runner'
import { RunLocation, Events, PrivateRunLocation, CheckRunId } from '../services/abstract-check-runner'
import { RunLocation, Events, PrivateRunLocation, CheckRunId, DEFAULT_CHECK_RUN_TIMEOUT_SECONDS } from '../services/abstract-check-runner'
import config from '../services/config'
import { createReporters, ReporterType } from '../reporters/reporter'
import { TestResultsShortLinks } from '../rest/test-sessions'
Expand Down Expand Up @@ -42,7 +42,7 @@ export default class Trigger extends AuthCommand {
description: 'The Checkly CLI config filename.',
}),
timeout: Flags.integer({
default: 240,
default: DEFAULT_CHECK_RUN_TIMEOUT_SECONDS,
description: 'A timeout (in seconds) to wait for checks to complete.',
}),
verbose: Flags.boolean({
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/services/abstract-check-runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type RunLocation = PublicRunLocation | PrivateRunLocation

export type CheckRunId = string

export const DEFAULT_CHECK_RUN_TIMEOUT_SECONDS = 300
export const DEFAULT_CHECK_RUN_TIMEOUT_SECONDS = 600

const DEFAULT_SCHEDULING_DELAY_EXCEEDED_MS = 20000

Expand Down

0 comments on commit 270ec5a

Please sign in to comment.