Skip to content

Commit

Permalink
Add error message to object count assertion failure
Browse files Browse the repository at this point in the history
Signed-off-by: Per Goncalves da Silva <[email protected]>
  • Loading branch information
Per Goncalves da Silva committed Jan 9, 2025
1 parent a32b81b commit bfbf784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/operator_groups_e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2511,7 +2511,7 @@ func pollForNamespaceListCount(c operatorclient.ClientInterface, listOptions met
if len(list.Items) == expectedLength {
return true, nil
}
return false, nil
return false, fmt.Errorf("expected %d resources, got %d", expectedLength, len(list.Items))
}).Should(BeTrue())
return
}
Expand Down

0 comments on commit bfbf784

Please sign in to comment.