From 149440854e539ba5e674109f96af13cf9e34fe7f Mon Sep 17 00:00:00 2001 From: xhe Date: Fri, 26 Mar 2021 21:45:23 +0800 Subject: [PATCH] statistics: sort the test result, stable tests (#23564) --- statistics/handle/gc_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/statistics/handle/gc_test.go b/statistics/handle/gc_test.go index 78c900f1fdcdc..f934f8973fe6c 100644 --- a/statistics/handle/gc_test.go +++ b/statistics/handle/gc_test.go @@ -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()) }