Skip to content

Commit

Permalink
infoschema: fix unstable test: TestSelectClusterTable
Browse files Browse the repository at this point in the history
Signed-off-by: crazycs520 <[email protected]>
  • Loading branch information
crazycs520 committed Feb 13, 2023
1 parent 707d3d5 commit 2750490
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion infoschema/cluster_tables_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,12 @@ func TestSelectClusterTable(t *testing.T) {
defer s.httpServer.Close()
defer s.rpcserver.Stop()
tk := s.newTestKitWithRoot(t)
slowLogFileName := "tidb-slow.log"
slowLogFileName := "tidb-slow0.log"
prepareSlowLogfile(t, slowLogFileName)
defer func() { require.NoError(t, os.Remove(slowLogFileName)) }()
config.UpdateGlobal(func(conf *config.Config) {
conf.Log.SlowQueryFile = slowLogFileName
})

tk.MustExec("use information_schema")
tk.MustExec("set @@global.tidb_enable_stmt_summary=1")
Expand Down

0 comments on commit 2750490

Please sign in to comment.