From a85f3c13368b5cfb8f4bd3d7afb32e6fb7fa5898 Mon Sep 17 00:00:00 2001 From: Ben Ye <benye@amazon.com> Date: Thu, 7 Dec 2023 08:43:14 -0800 Subject: [PATCH] add missing slice sort for user scanner unit test (#5700) Signed-off-by: Ben Ye <benye@amazon.com> --- pkg/storage/tsdb/users_scanner_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/storage/tsdb/users_scanner_test.go b/pkg/storage/tsdb/users_scanner_test.go index 18c044d49c..3aa65b129c 100644 --- a/pkg/storage/tsdb/users_scanner_test.go +++ b/pkg/storage/tsdb/users_scanner_test.go @@ -54,6 +54,7 @@ func TestUsersScanner_ScanUsers_ShouldReturnUsersForWhichOwnerCheckOrTenantDelet s := NewUsersScanner(bucketClient, isOwned, log.NewNopLogger()) actual, deleted, err := s.ScanUsers(context.Background()) require.NoError(t, err) + slices.Sort(actual) assert.Equal(t, expected, actual) assert.Empty(t, deleted) }