diff --git a/internal/app/timeouts.go b/internal/app/timeouts.go index 1804948..c99dadd 100644 --- a/internal/app/timeouts.go +++ b/internal/app/timeouts.go @@ -16,7 +16,7 @@ func DefaultTimeouts() Timeouts { return Timeouts{ APIShort: 10 * time.Second, APIMedium: 30 * time.Second, - APILong: 60 * time.Second, + APILong: 120 * time.Second, BuildUpload: 600 * time.Second, SSHConnect: 5 * time.Second, } diff --git a/test/testutil/helpers.go b/test/testutil/helpers.go index 42dacf2..2f81381 100644 --- a/test/testutil/helpers.go +++ b/test/testutil/helpers.go @@ -14,7 +14,11 @@ import ( ) const ( - DefaultTimeout = 60 * time.Second + // DefaultTimeout caps each `vers` invocation in integration tests. + // Must exceed the CLI's longest internal context budget (APILong = 120s) + // so the CLI gets room to either succeed or return a clean + // context-deadline error before the test wrapper kills the process. + DefaultTimeout = 180 * time.Second ) var (