Skip to content

Commit

Permalink
test cell delete
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Feb 10, 2025
1 parent ceabc6c commit de74bbe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion go/vt/vtorc/logic/cell_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,13 @@ func TestRefreshCells(t *testing.T) {
ts = memorytopo.NewServer(ctx, cells...)

require.NoError(t, RefreshCells(ctx))

cellsRead, err := inst.ReadCells()
require.NoError(t, err)
require.Equal(t, cells, cellsRead)

require.NoError(t, ts.DeleteCellInfo(context.Background(), "zone3", true))
require.NoError(t, RefreshCells(ctx))
cellsRead, err = inst.ReadCells()
require.NoError(t, err)
require.Equal(t, cells[:2], cellsRead)
}

0 comments on commit de74bbe

Please sign in to comment.