Skip to content

Commit

Permalink
Fix tests by increasing timeout
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Nov 12, 2024
1 parent 4415c88 commit 8bc5704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const CHE_OPERATOR_CR_YAML = Flags.string({
default: '',
})

export const DEFAULT_POD_WAIT_TIMEOUT = '60000'
export const DEFAULT_POD_WAIT_TIMEOUT = '120000'
export const K8S_POD_WAIT_TIMEOUT_FLAG = 'k8spodwaittimeout'
export const K8S_POD_WAIT_TIMEOUT = Flags.string({
description: 'Waiting time for Pod scheduled condition (in milliseconds)',
Expand All @@ -97,7 +97,7 @@ export const K8S_POD_DOWNLOAD_IMAGE_TIMEOUT = Flags.string({
})

export const DEFAULT_K8S_POD_READY_TIMEOUT_EMBEDDED_PLUGIN_REGISTRY = '600000'
export const DEFAULT_K8S_POD_READY_TIMEOUT = '60000'
export const DEFAULT_K8S_POD_READY_TIMEOUT = '120000'
export const K8S_POD_READY_TIMEOUT_FLAG = 'k8spodreadytimeout'
export const K8S_POD_READY_TIMEOUT = Flags.string({
description: 'Waiting time for Pod Ready condition (in milliseconds)',
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/e2e-upgrade-version.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Test Che upgrade', () => {
// scale deployments down to free up some resources
await helper.runCliCommand('kubectl', ['scale', 'deployment', 'che', '--replicas=0', `-n ${NAMESPACE}`])
await helper.runCliCommand(binChectl, ['server:update', '-y', `-n ${NAMESPACE}`, '--telemetry=off'])
await helper.runCliCommand(binChectl, ['server:start', `-n ${NAMESPACE}`, '--telemetry=off'])
await helper.runCliCommand(binChectl, ['server:start', `-n ${NAMESPACE}`, '--telemetry=off', '--k8spodwaittimeout=600000', '--k8spodreadytimeout=600000'])
await helper.waitForCheServerImageTag(helper.getNewVersion(), UPDATE_CHE_TIMEOUT_MS)
})

Expand Down

0 comments on commit 8bc5704

Please sign in to comment.