From 51acc592860d949ac03003a8bcfe54e1f798691b Mon Sep 17 00:00:00 2001 From: Chetan Banavikalmutt Date: Mon, 18 Sep 2023 09:48:12 +0530 Subject: [PATCH] Fix linting --- .../application_event_loop/application_event_runner_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/eventloop/application_event_loop/application_event_runner_test.go b/backend/eventloop/application_event_loop/application_event_runner_test.go index 74d53a8bb5..c665142711 100644 --- a/backend/eventloop/application_event_loop/application_event_runner_test.go +++ b/backend/eventloop/application_event_loop/application_event_runner_test.go @@ -1045,7 +1045,7 @@ var _ = Describe("ApplicationEventLoop Test", func() { ) It("should return an empty resourceStatus if the input slice is empty", func() { resourcesStatus := extractResourceStatus([]fauxargocd.ResourceStatus{}) - Expect(resourcesStatus).To(HaveLen(0)) + Expect(resourcesStatus).To(BeEmpty()) }) It("should convert the input faux ResourceStatus to GitOpsDeployment ResourceStatus", func() { @@ -1105,7 +1105,7 @@ var _ = Describe("ApplicationEventLoop Test", func() { } opState, err := extractOperationState(&inputState) - Expect(err).To(BeNil()) + Expect(err).ToNot(HaveOccurred()) Expect(*opState).To(Equal(expectedState)) }) })