From f67c75a9b7a65aa15098dc1676e9c10c68f83f9f Mon Sep 17 00:00:00 2001 From: Jordi Gil Date: Wed, 27 Dec 2023 10:49:56 -0500 Subject: [PATCH] Change error wrapping in test as function errors.Join() is not supported in golang 1.19 Signed-off-by: Jordi Gil --- test/e2e/workflow_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/e2e/workflow_test.go b/test/e2e/workflow_test.go index 942867c74..2aa0cbd6a 100644 --- a/test/e2e/workflow_test.go +++ b/test/e2e/workflow_test.go @@ -22,7 +22,6 @@ package e2e import ( "bytes" "encoding/json" - "errors" "fmt" "math/rand" "net/url" @@ -384,7 +383,7 @@ func verifyHealthStatusInPod(name string, namespace string) { Expect(h.Status).To(Equal(upStatus)) return } - errs = errors.Join(err) + errs = fmt.Errorf("%v; %w", err, errs) } Expect(errs).NotTo(HaveOccurred(), fmt.Sprintf("No container was found that could respond to the health endpoint %v", errs))