Skip to content

Commit

Permalink
sort expected tablets
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Nov 6, 2024
1 parent fdb7e87 commit 505d3d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/vt/topo/tablet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ func TestServerGetTabletsByCell(t *testing.T) {
slices.SortFunc(out, func(i, j *topo.TabletInfo) int {
return cmp.Compare(i.Alias.Uid, j.Alias.Uid)
})
slices.SortFunc(tt.expectedTablets, func(i, j *topo.TabletInfo) int {
return cmp.Compare(i.Alias.Uid, j.Alias.Uid)
})

for i, tablet := range out {
expected := tt.expectedTablets[i]
Expand Down

0 comments on commit 505d3d7

Please sign in to comment.