Skip to content

Commit

Permalink
Fix incorrect split
Browse files Browse the repository at this point in the history
  • Loading branch information
domhanak committed Feb 8, 2024
1 parent 054f4a0 commit 0022c6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func getHealthStatusInContainer(podName string, containerName string, ns string)
Expect(err).NotTo(HaveOccurred())
stringOutput := string(output)
split := strings.Index(stringOutput, "{")
stringOutput = stringOutput[split+1:]
stringOutput = stringOutput[split:]
err = json.Unmarshal([]byte(stringOutput), &h)
if err != nil {
fmt.Printf("Error decoding HealthCheck response: %v", err)
Expand Down

0 comments on commit 0022c6d

Please sign in to comment.