diff --git a/test/e2e/helpers.go b/test/e2e/helpers.go index e6e14f7e5..5f6422304 100644 --- a/test/e2e/helpers.go +++ b/test/e2e/helpers.go @@ -103,7 +103,7 @@ func getHealthStatusInContainer(podName string, containerName string, ns string) Expect(err).NotTo(HaveOccurred()) stringOutput := string(output) fmt.Printf("Output transformed to string: %v\n", stringOutput) - reg, _ := regexp.Compile("(\\{(.*)\\](.*)\\})") + reg, _ := regexp.Compile("\\{.*\\].*\\}") stringOutput = reg.FindString(stringOutput) fmt.Printf("Found string using regex: %v\n", stringOutput) err = json.Unmarshal([]byte(stringOutput), &h)