diff --git a/statistics/handle/handle_test.go b/statistics/handle/handle_test.go index 533a15ad54e2f..53b9549d5e7ba 100644 --- a/statistics/handle/handle_test.go +++ b/statistics/handle/handle_test.go @@ -878,7 +878,7 @@ func (s *testStatsSuite) TestBuildGlobalLevelStats(c *C) { } // nolint:unused -func (s *testStatsSuite) prepareForGlobalStatsWithOpts(c *C, tk *testkit.TestKit, tblName, dbName string) { +func (s *testSerialStatsSuite) prepareForGlobalStatsWithOpts(c *C, tk *testkit.TestKit, tblName, dbName string) { tk.MustExec("create database if not exists " + dbName) tk.MustExec("use " + dbName) tk.MustExec("drop table if exists " + tblName) @@ -902,7 +902,7 @@ func (s *testStatsSuite) prepareForGlobalStatsWithOpts(c *C, tk *testkit.TestKit } // nolint:unused -func (s *testStatsSuite) checkForGlobalStatsWithOpts(c *C, tk *testkit.TestKit, t string, p string, topn, buckets int) { +func (s *testSerialStatsSuite) checkForGlobalStatsWithOpts(c *C, tk *testkit.TestKit, t string, p string, topn, buckets int) { delta := buckets/2 + 1 for _, isIdx := range []int{0, 1} { c.Assert(len(tk.MustQuery(fmt.Sprintf("show stats_topn where table_name='%v' and partition_name='%v' and is_index=%v", t, p, isIdx)).Rows()), Equals, topn) @@ -914,7 +914,7 @@ func (s *testStatsSuite) checkForGlobalStatsWithOpts(c *C, tk *testkit.TestKit, } } -func (s *testStatsSuite) TestAnalyzeGlobalStatsWithOpts(c *C) { +func (s *testSerialStatsSuite) TestAnalyzeGlobalStatsWithOpts(c *C) { if israce.RaceEnabled { c.Skip("exhaustive types test, skip race test") } @@ -953,7 +953,7 @@ func (s *testStatsSuite) TestAnalyzeGlobalStatsWithOpts(c *C) { } } -func (s *testStatsSuite) TestAnalyzeGlobalStatsWithOpts2(c *C) { +func (s *testSerialStatsSuite) TestAnalyzeGlobalStatsWithOpts2(c *C) { if israce.RaceEnabled { c.Skip("exhaustive types test, skip race test") }