Skip to content

Commit

Permalink
TestTaskRunTimeout: Reduce timeout 30s -> 1s.
Browse files Browse the repository at this point in the history
There's no reason why this Task needs to run for a full 30s. Reduce it
to 1s so we can timeout ASAP.
  • Loading branch information
wlynch authored and tekton-robot committed Nov 4, 2021
1 parent 2dc34a4 commit 4db26b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/timeout_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build e2e
// +build e2e

/*
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 4db26b1

Please sign in to comment.