From 57366a3e7e9abcfd09559dbb74ebdd2cc223e0f6 Mon Sep 17 00:00:00 2001 From: Moritz Clasmeier Date: Fri, 5 Aug 2022 13:08:37 +0200 Subject: [PATCH] Fix equality check in test --- e2e/e2e_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/e2e_test.go b/e2e/e2e_test.go index 180231bb33..6a635580e7 100644 --- a/e2e/e2e_test.go +++ b/e2e/e2e_test.go @@ -306,19 +306,19 @@ var _ = Describe("Central", func() { coreV1Resources := central.Spec.Central.DeploymentSpec.Resources expectedResources, err := converters.ConvertPublicResourceRequirementsToCoreV1(¢ralResources) Expect(err).ToNot(HaveOccurred()) - Expect(coreV1Resources).To(Equal(expectedResources)) + Expect(*coreV1Resources).To(Equal(expectedResources)) }) It("scanner analyzer resources match configured settings", func() { coreV1Resources := central.Spec.Scanner.Analyzer.DeploymentSpec.Resources expectedResources, err := converters.ConvertPublicResourceRequirementsToCoreV1(&scannerResources) Expect(err).ToNot(HaveOccurred()) - Expect(coreV1Resources).To(Equal(expectedResources)) + Expect(*coreV1Resources).To(Equal(expectedResources)) - a := central.Spec.Scanner.Analyzer.Scaling - b, err := converters.ConvertPublicScalingToV1(&scannerScaling) + scaling := central.Spec.Scanner.Analyzer.Scaling + expectedScaling, err := converters.ConvertPublicScalingToV1(&scannerScaling) Expect(err).ToNot(HaveOccurred()) - Expect(a).To(Equal(b)) + Expect(*scaling).To(Equal(expectedScaling)) }) It("should transition central's state to ready", func() {