diff --git a/test/e2e/helpers.go b/test/e2e/helpers.go index 0e7c54701..884e95c34 100644 --- a/test/e2e/helpers.go +++ b/test/e2e/helpers.go @@ -20,6 +20,7 @@ import ( "os" "os/exec" "regexp" + "slices" "strconv" "strings" @@ -111,8 +112,7 @@ func getHealthStatusInContainer(podName string, containerName string, ns string) fmt.Printf("HealthCheck response: %q\n", stringOutput) return nil, fmt.Errorf("failed to execute curl command against health endpoint in container %s:%v with output %s", containerName, err, output) } - Expect(healthChecks).ShouldNot(ContainSubstring("\"status\": \"DOWN\"")) - Expect(healthChecks).Should(ContainSubstring("\"status\": \"UP\"")) + Expect(slices.Contains(healthChecks, "\"name\": \"alive\",\n \"status\": \"UP\"")).To(BeTrue()) return &h, nil } func verifyWorkflowIsInRunningStateInNamespace(workflowName string, ns string) bool {