From aa60021ab021ece22deca1d998cfac3264ad2aa5 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Tue, 4 Oct 2022 20:31:10 +0900 Subject: [PATCH] e2e: Make docker build timeout longer (#1862) Depending on the host machine spec and load, it can take more time than 5 minutes. This change adhocly increases the timeout by 1.5x to address that. --- testing/testing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/testing.go b/testing/testing.go index 49e79134..c26a3f1d 100644 --- a/testing/testing.go +++ b/testing/testing.go @@ -113,7 +113,7 @@ func (e *Env) DeleteTestID(t *testing.T) { func (e *Env) DockerBuild(t *testing.T, builds []DockerBuild) { t.Helper() - ctx, cancel := context.WithTimeout(context.Background(), 300*time.Second) + ctx, cancel := context.WithTimeout(context.Background(), 450*time.Second) defer cancel() if err := e.docker.Build(ctx, builds); err != nil {