Skip to content

Commit

Permalink
Use BeEquivalentTo for RESTMapper tests
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Prodan <[email protected]>
  • Loading branch information
stefanprodan committed Feb 5, 2024
1 parent 1f6dbf1 commit ed0d81c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/kube/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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))
})
}

Expand Down

0 comments on commit ed0d81c

Please sign in to comment.