Skip to content

Commit a786bc5

Browse files
authored
Increase timeout in benchmark case (kubernetes-sigs#1437)
* test: increase timeout for pod deletion in benchmark case * update timeout for benchmark hack * address review
1 parent f414b3d commit a786bc5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/e2e/benchmark.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ func CaseBenchmark(kwokctlPath, clusterName string) *features.FeatureBuilder {
217217
return ctx
218218
}).
219219
Assess("Delete pods", func(ctx context.Context, t *testing.T, c *envconf.Config) context.Context {
220-
ctx0, cancel := context.WithTimeout(ctx, 60*time.Second)
220+
ctx0, cancel := context.WithTimeout(ctx, 90*time.Second)
221221
defer cancel()
222222

223223
err := scaleDeletePod(ctx0, t, kwokctlPath, clusterName, 10000)

test/e2e/benchmark_hack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func CaseBenchmarkWithHack(kwokctlPath, clusterName string) *features.FeatureBui
186186
return ctx
187187
}).
188188
Assess("Delete pods", func(ctx context.Context, t *testing.T, c *envconf.Config) context.Context {
189-
ctx0, cancel := context.WithTimeout(ctx, 20*time.Second)
189+
ctx0, cancel := context.WithTimeout(ctx, 30*time.Second)
190190
defer cancel()
191191

192192
err := scaleDeletePodWithHack(ctx0, t, kwokctlPath, clusterName, 10000)

0 commit comments

Comments
 (0)