diff --git a/go/vt/vtorc/logic/cell_discovery_test.go b/go/vt/vtorc/logic/cell_discovery_test.go index 56d6139c3df..0ed4fa54b8a 100644 --- a/go/vt/vtorc/logic/cell_discovery_test.go +++ b/go/vt/vtorc/logic/cell_discovery_test.go @@ -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) }