From d0409c0f31296b1136535a006b5b1c109c0bca8a Mon Sep 17 00:00:00 2001 From: Justin Alvarez Date: Fri, 12 Jan 2024 16:35:23 -0500 Subject: [PATCH] fix: increase nginx pull timeout Signed-off-by: Justin Alvarez --- tests/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/run.go b/tests/run.go index d9b693f..e511ad7 100644 --- a/tests/run.go +++ b/tests/run.go @@ -366,7 +366,10 @@ func Run(o *RunOption) { hostPort := fnet.GetFreePort() // Start an Nginx container in detached mode with the specified publish flag and mapping the container port to // a randomly selected host port. - command.Run(o.BaseOpt, "run", "-d", publish, fmt.Sprintf("%d:%d", hostPort, containerPort), nginxImage) + command. + New(o.BaseOpt, "run", "-d", publish, fmt.Sprintf("%d:%d", hostPort, containerPort), nginxImage). + WithTimeoutInSeconds(20). + Run() fnet.HTTPGetAndAssert(fmt.Sprintf("http://localhost:%d", hostPort), 200, 20, 200*time.Millisecond) }) }