From 2e23ee5bf6a9dcb4faa099923acbd53a1f54bf1c Mon Sep 17 00:00:00 2001 From: Teddy Andrieux Date: Wed, 14 Sep 2022 15:00:27 +0200 Subject: [PATCH] fixup! operator: Add some logic to manage sub reconciler --- operator/pkg/controller/utils/reconcile_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/operator/pkg/controller/utils/reconcile_test.go b/operator/pkg/controller/utils/reconcile_test.go index 97d83eafdb..4c0ae708fa 100644 --- a/operator/pkg/controller/utils/reconcile_test.go +++ b/operator/pkg/controller/utils/reconcile_test.go @@ -105,7 +105,7 @@ func assertRequeue(result ctrl.Result, err error) { func assertRequeueError(myErr error, result ctrl.Result, err error) { Expect(err).To(HaveOccurred()) - Expect(err.Error()).To(Equal("An ErRoR !")) + Expect(err).To(BeEquivalentTo(myErr)) Expect(result.Requeue).To(BeFalse()) Expect(result.RequeueAfter).To(BeZero()) }