From 0d77acf1224ca07333e3c5585739757d5cf7e3b8 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Tue, 30 Jan 2024 22:36:07 +0200 Subject: [PATCH] Use `BeEquivalentTo` for RESTMapper tests Signed-off-by: Stefan Prodan --- internal/kube/client_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/kube/client_test.go b/internal/kube/client_test.go index 24fbfd910..fa7792131 100644 --- a/internal/kube/client_test.go +++ b/internal/kube/client_test.go @@ -250,7 +250,7 @@ func TestMemoryRESTClientGetter_ToRESTMapper(t *testing.T) { // Calling it again should return the same instance. rm2, err := c.ToRESTMapper() g.Expect(err).ToNot(HaveOccurred()) - g.Expect(rm2).To(BeIdenticalTo(rm)) + g.Expect(rm2).To(BeEquivalentTo(rm)) }) t.Run("returns a REST mapper", func(t *testing.T) { @@ -268,7 +268,7 @@ func TestMemoryRESTClientGetter_ToRESTMapper(t *testing.T) { // Calling it again should return a new instance. rm2, err := c.ToRESTMapper() g.Expect(err).ToNot(HaveOccurred()) - g.Expect(rm2).ToNot(BeIdenticalTo(rm)) + g.Expect(rm2).ToNot(BeEquivalentTo(rm)) }) }