Skip to content

Commit

Permalink
Fix test panic
Browse files Browse the repository at this point in the history
Signed-off-by: Dale Haiducek <[email protected]>
  • Loading branch information
dhaiducek authored and openshift-merge-bot[bot] committed Nov 9, 2023
1 parent be69acb commit 25baa33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/case22_user_validation_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ var _ = Describe("Test proper metrics handling on syntax error", Ordered, func()
defaultTimeoutSeconds)
err := runtime.DefaultUnstructuredConverter.FromUnstructured(managedPlc.Object, &plc)
g.Expect(err).ToNot(HaveOccurred())
if len(plc.Status.Details) < 1 {
if len(plc.Status.Details) < 2 {
return ""
}

if len(plc.Status.Details[1].History) < 1 {
return ""
}

Expand Down

0 comments on commit 25baa33

Please sign in to comment.