Skip to content

Commit

Permalink
test cleanup
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 59dcb19 commit f02aca7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions go/vt/vtorc/logic/cell_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,14 @@ func TestRefreshAllCells(t *testing.T) {
db.ClearVTOrcDatabase()
}()

cells := []string{"zone1", "zone2", "zone3"}
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
ts = memorytopo.NewServer(ctx, "zone1", "zone2", "zone3")
ts = memorytopo.NewServer(ctx, cells...)

require.NoError(t, RefreshCells(ctx))

cells, err := inst.ReadCells()
cellsRead, err := inst.ReadCells()
require.NoError(t, err)
require.Equal(t, []string{"zone1", "zone2", "zone3"}, cells)
require.Equal(t, cells, cellsRead)
}

0 comments on commit f02aca7

Please sign in to comment.