diff --git a/pkg/winperfcounters/watcher_test.go b/pkg/winperfcounters/watcher_test.go index 0f671916288b..72569a6339a7 100644 --- a/pkg/winperfcounters/watcher_test.go +++ b/pkg/winperfcounters/watcher_test.go @@ -128,7 +128,7 @@ func TestPerfCounter_Reset(t *testing.T) { // new query is different instance of same counter. require.NoError(t, err) - assert.NotSame(t, handle, pc.handle) + assert.NotEqual(t, handle, pc.handle) assert.NotSame(t, query, pc.query) assert.Equal(t, path, pc.Path())