From 89ba915486afb2c92c514f4155edf523b40a22dd Mon Sep 17 00:00:00 2001 From: wshwsh12 <793703860@qq.com> Date: Mon, 1 Jul 2019 14:40:29 +0800 Subject: [PATCH] fix test cases --- infoschema/tables_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/infoschema/tables_test.go b/infoschema/tables_test.go index 42db8c958ed50..d4a60b74453f5 100644 --- a/infoschema/tables_test.go +++ b/infoschema/tables_test.go @@ -329,7 +329,7 @@ func (s *testTableSuite) TestSomeTables(c *C) { StmtCtx: tk.Se.GetSessionVars().StmtCtx, } tk.Se.SetSessionManager(sm) - tk.MustQuery("select * from information_schema.PROCESSLIST order by ID;").Sort().Check( + tk.MustQuery("select * from information_schema.PROCESSLIST order by ID;").Check( testkit.Rows( fmt.Sprintf("1 user-1 localhost information_schema Quit 9223372036 1 %s 0", ""), fmt.Sprintf("2 user-2 localhost Init DB 9223372036 2 %s 0", strings.Repeat("x", 101)), @@ -344,11 +344,11 @@ func (s *testTableSuite) TestSomeTables(c *C) { fmt.Sprintf("1 user-1 localhost information_schema Quit 9223372036 1 %s", ""), fmt.Sprintf("2 user-2 localhost Init DB 9223372036 2 %s", strings.Repeat("x", 101)), )) - tk.MustQuery("select * from information_schema.PROCESSLIST where db is null;").Sort().Check( + tk.MustQuery("select * from information_schema.PROCESSLIST where db is null;").Check( testkit.Rows( fmt.Sprintf("2 user-2 localhost Init DB 9223372036 2 %s 0", strings.Repeat("x", 101)), )) - tk.MustQuery("select * from information_schema.PROCESSLIST where Info is null;").Sort().Check( + tk.MustQuery("select * from information_schema.PROCESSLIST where Info is null;").Check( testkit.Rows( fmt.Sprintf("1 user-1 localhost information_schema Quit 9223372036 1 %s 0", ""), ))