Skip to content

Commit

Permalink
Fix equality check in test
Browse files Browse the repository at this point in the history
  • Loading branch information
mtesseract committed Aug 5, 2022
1 parent 6ea0646 commit 57366a3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -306,19 +306,19 @@ var _ = Describe("Central", func() {
coreV1Resources := central.Spec.Central.DeploymentSpec.Resources
expectedResources, err := converters.ConvertPublicResourceRequirementsToCoreV1(&centralResources)
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() {
Expand Down

0 comments on commit 57366a3

Please sign in to comment.