From 753888150815be42f9ff30d253c2c230910efc52 Mon Sep 17 00:00:00 2001 From: Heathcliff Date: Sun, 1 Dec 2024 08:12:11 +0100 Subject: [PATCH] upgrade-controller: Fix pointer unit-test after assert update Signed-off-by: Heathcliff --- pkg/k8s/utils/utils_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/k8s/utils/utils_test.go b/pkg/k8s/utils/utils_test.go index 40459241..29ce09ef 100644 --- a/pkg/k8s/utils/utils_test.go +++ b/pkg/k8s/utils/utils_test.go @@ -72,6 +72,5 @@ func TestGetNamespace(t *testing.T) { func TestPointer(t *testing.T) { s := "test" p := Pointer(s) - assert.Equal(t, &s, p, "Should contain the same string") - assert.NotSame(t, s, p, "Should not be the same") + assert.Equal(t, &s, p, "Should return pointer to variable with the same value") }