From 4db26b1681bea6108d76eadc515eff0b35a8923f Mon Sep 17 00:00:00 2001 From: Billy Lynch Date: Thu, 4 Nov 2021 15:15:09 -0400 Subject: [PATCH] TestTaskRunTimeout: Reduce timeout 30s -> 1s. There's no reason why this Task needs to run for a full 30s. Reduce it to 1s so we can timeout ASAP. --- test/timeout_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/timeout_test.go b/test/timeout_test.go index a9715421f1b..a561e3cb636 100644 --- a/test/timeout_test.go +++ b/test/timeout_test.go @@ -1,3 +1,4 @@ +//go:build e2e // +build e2e /* @@ -279,7 +280,7 @@ spec: // TestTaskRunTimeout is an integration test that will verify a TaskRun can be timed out. func TestTaskRunTimeout(t *testing.T) { t.Parallel() - timeout := 30 * time.Second + timeout := 1 * time.Second ctx, cancel := context.WithTimeout(context.Background(), timeout+2*time.Minute) defer cancel() c, namespace := setup(ctx, t)