Skip to content

Commit

Permalink
statistics: sort the test result, stable tests (#23564)
Browse files Browse the repository at this point in the history
  • Loading branch information
xhebox committed Mar 26, 2021
1 parent 8492619 commit 1494408
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions statistics/handle/gc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,18 @@ func (s *testStatsSuite) TestGCExtendedStats(c *C) {
"s2 2 [2,3] 1.000000 1",
))
c.Assert(h.GCStats(s.do.InfoSchema(), ddlLease), IsNil)
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Check(testkit.Rows(
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Sort().Check(testkit.Rows(
"s2 2 [2,3] 1.000000 1",
))

testKit.MustExec("drop table t")
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Check(testkit.Rows(
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Sort().Check(testkit.Rows(
"s2 2 [2,3] 1.000000 1",
))
c.Assert(h.GCStats(s.do.InfoSchema(), ddlLease), IsNil)
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Check(testkit.Rows(
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Sort().Check(testkit.Rows(
"s2 2 [2,3] 1.000000 2",
))
c.Assert(h.GCStats(s.do.InfoSchema(), ddlLease), IsNil)
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Check(testkit.Rows())
testKit.MustQuery("select name, type, column_ids, stats, status from mysql.stats_extended").Sort().Check(testkit.Rows())
}

0 comments on commit 1494408

Please sign in to comment.