Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Refactor test to make it even more generic. Remove extra line in stru…
Browse files Browse the repository at this point in the history
…ct def

Signed-off-by: Rafael Chacon <[email protected]>
  • Loading branch information
rafael committed Dec 17, 2018
1 parent 0befc7e commit a51c547
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion go/vt/discovery/tablet_stats_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ type tabletStatsCacheEntry struct {
healthy []*TabletStats
// aggregates has the per-cell aggregates.
aggregates map[string]*querypb.AggregateStats

// aggregatesPerRegion has the per-region aggregates.
aggregatesPerRegion map[string]*querypb.AggregateStats
}
Expand Down
7 changes: 1 addition & 6 deletions go/vt/vtgate/gateway/discoverygateway_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,7 @@ func benchmarkCellsGetAggregateStats(i int, b *testing.B) {
cellsToregions := make(map[string]string)
for j := 0; j < i; j++ {
cell := fmt.Sprintf("cell%v", j)
// let's assume that there are few local cells
if j <= 4 {
cellsToregions[cell] = "local"
} else {
cellsToregions[cell] = "remote"
}
cellsToregions[cell] = "local"
}

topo.UpdateCellsToRegionsForTests(cellsToregions)
Expand Down

0 comments on commit a51c547

Please sign in to comment.