Skip to content

Commit 2270290

Browse files
committed
Fix usage of assert.NotSame in TestPreallocTimeseriesSliceFromPool
Signed-off-by: Charlie Le <[email protected]>
1 parent 44ccc65 commit 2270290

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cortexpb/timeseries_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func TestPreallocTimeseriesSliceFromPool(t *testing.T) {
3434
first := PreallocTimeseriesSliceFromPool()
3535
second := PreallocTimeseriesSliceFromPool()
3636

37-
assert.NotSame(t, first, second)
37+
assert.NotSame(t, &first, &second)
3838
})
3939

4040
t.Run("instance is cleaned before reusing", func(t *testing.T) {

0 commit comments

Comments
 (0)