Skip to content

Commit

Permalink
upgrade-controller: Fix pointer unit-test after assert update
Browse files Browse the repository at this point in the history
Signed-off-by: Heathcliff <[email protected]>
  • Loading branch information
heathcliff26 committed Dec 1, 2024
1 parent bf60095 commit 7538881
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/k8s/utils/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

0 comments on commit 7538881

Please sign in to comment.