Skip to content

Commit

Permalink
add missing slice sort for user scanner unit test (#5700)
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 authored Dec 7, 2023
1 parent e8a101c commit a85f3c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storage/tsdb/users_scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit a85f3c1

Please sign in to comment.