Skip to content

Commit

Permalink
Set timeout for vcr
Browse files Browse the repository at this point in the history
  • Loading branch information
gemmahou committed Sep 10, 2024
1 parent 7f60b0a commit 1021a81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/unified_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func testFixturesInSeries(ctx context.Context, t *testing.T, testPause bool, can
t.Helper()

subtestTimeout := time.Hour
if targetGCP := os.Getenv("E2E_GCP_TARGET"); targetGCP == "mock" {
if targetGCP := os.Getenv("E2E_GCP_TARGET"); targetGCP == "mock" || targetGCP == "vcr" {
// We allow a total of 3 minutes: 2 for the test itself (for deep object chains with retries),
// and 1 minute to shutdown envtest / allow kube-apiserver requests to time-out.
subtestTimeout = 3 * time.Minute
Expand Down

0 comments on commit 1021a81

Please sign in to comment.