Skip to content

Commit a7f7ee4

Browse files
committed
test: use is.NotSame for pointer identity check in TestLayers
1 parent 017ac76 commit a7f7ee4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

error_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ func TestLayers(t *testing.T) {
9191
is.Equal("l1", layers[2].code)
9292

9393
// layers are pointers (not shared)
94-
is.True(layers[0] != layers[1])
95-
is.True(layers[1] != layers[2])
94+
is.NotSame(layers[0], layers[1])
95+
is.NotSame(layers[1], layers[2])
9696
}
9797

9898
func TestErrorsAs(t *testing.T) {

0 commit comments

Comments
 (0)