Skip to content

Commit

Permalink
statistics: fix two unstable tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelice committed Jun 16, 2021
1 parent efc774a commit ec89da0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions statistics/handle/handle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import (
"github.com/pingcap/tidb/util/collate"
"github.com/pingcap/tidb/util/ranger"
"github.com/pingcap/tidb/util/testkit"
"github.com/pingcap/tidb/util/israce"
"github.com/tikv/client-go/v2/oracle"
)

Expand Down Expand Up @@ -882,7 +883,9 @@ func (s *testStatsSuite) checkForGlobalStatsWithOpts(c *C, tk *testkit.TestKit,
}

func (s *testStatsSuite) TestAnalyzeGlobalStatsWithOpts(c *C) {
c.Skip("unstable, skip race test")
if israce.RaceEnabled {
c.Skip("exhaustive types test, skip race test")
}
defer cleanEnv(c, s.store, s.do)
tk := testkit.NewTestKit(c, s.store)
s.prepareForGlobalStatsWithOpts(c, tk, "test_gstats_opt", "test_gstats_opt")
Expand Down Expand Up @@ -918,7 +921,9 @@ func (s *testStatsSuite) TestAnalyzeGlobalStatsWithOpts(c *C) {
}

func (s *testStatsSuite) TestAnalyzeGlobalStatsWithOpts2(c *C) {
c.Skip("unstable, skip race test")
if israce.RaceEnabled {
c.Skip("exhaustive types test, skip race test")
}
defer cleanEnv(c, s.store, s.do)
tk := testkit.NewTestKit(c, s.store)
s.prepareForGlobalStatsWithOpts(c, tk, "test_gstats_opt2", "test_gstats_opt2")
Expand Down

0 comments on commit ec89da0

Please sign in to comment.