Skip to content

Commit

Permalink
move stats reset
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Sep 25, 2024
1 parent 910b1ad commit 291aeb8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions go/vt/vttablet/tabletmanager/tm_init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,6 @@ func TestGetBuildTags(t *testing.T) {
}

func TestStartExportStats(t *testing.T) {
statsTabletTags.ResetAll()
statsTabletTypeCount.ResetAll()

ctx, cancel := context.WithCancel(context.Background())
defer cancel()

Expand Down Expand Up @@ -687,6 +684,10 @@ func newTestMysqlDaemon(t *testing.T, port int32) *mysqlctl.FakeMysqlDaemon {
}

func newTestTM(t *testing.T, ts *topo.Server, uid int, keyspace, shard string, tags map[string]string) *TabletManager {
// reset stats
statsTabletTags.ResetAll()
statsTabletTypeCount.ResetAll()

t.Helper()
ctx := context.Background()
tablet := newTestTablet(t, uid, keyspace, shard, tags)
Expand Down

0 comments on commit 291aeb8

Please sign in to comment.