From bfbf7849f90e979aad267ae5b8abfbd62a31fc90 Mon Sep 17 00:00:00 2001 From: Per Goncalves da Silva Date: Thu, 9 Jan 2025 10:38:17 +0100 Subject: [PATCH] Add error message to object count assertion failure Signed-off-by: Per Goncalves da Silva --- test/e2e/operator_groups_e2e_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/operator_groups_e2e_test.go b/test/e2e/operator_groups_e2e_test.go index a8739f58db..c848bcb808 100644 --- a/test/e2e/operator_groups_e2e_test.go +++ b/test/e2e/operator_groups_e2e_test.go @@ -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 }