diff --git a/pkg/jmap/integration_ws_test.go b/pkg/jmap/integration_ws_test.go index 1d6a8c1bb4..1f6ebd0a13 100644 --- a/pkg/jmap/integration_ws_test.go +++ b/pkg/jmap/integration_ws_test.go @@ -230,7 +230,7 @@ func TestWs(t *testing.T) { slices.Sort(emailIds) b := make([]string, len(changes.Destroyed)) copy(b, changes.Destroyed) - slices.Sort(changes.Destroyed) + slices.Sort(b) require.EqualValues(a, b) } require.Empty(changes.Updated)