Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Nov 5, 2024
1 parent 297ba58 commit dae7639
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions go/vt/topo/tablet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,6 @@ func TestServerGetTabletsByCell(t *testing.T) {
}
}

tablets := make([]*topo.TabletInfo, 0)

var uid uint32 = 1
for k, shards := range tt.keyspaceShards {
for _, s := range shards {
Expand All @@ -364,8 +362,6 @@ func TestServerGetTabletsByCell(t *testing.T) {
Keyspace: k,
Shard: s,
}
tInfo := &topo.TabletInfo{Tablet: tablet}
tablets = append(tablets, tInfo)
require.NoError(t, ts.CreateTablet(ctx, tablet))
uid++
}
Expand All @@ -377,6 +373,7 @@ func TestServerGetTabletsByCell(t *testing.T) {
out, err := ts.GetTabletsByCell(ctx, cell, tt.opt)
require.NoError(t, err)
require.Len(t, out, len(tt.expectedTablets))

for i, tablet := range out {
expected := tt.expectedTablets[i]
require.Equal(t, expected.Alias.String(), tablet.Alias.String())
Expand Down

0 comments on commit dae7639

Please sign in to comment.