Skip to content

Commit

Permalink
infoschema: fix unstable test TestSelectClusterTable (#41321)
Browse files Browse the repository at this point in the history
close #41307
  • Loading branch information
crazycs520 committed Feb 13, 2023
1 parent 79ae1e3 commit 1d452a9
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 1d452a9

Please sign in to comment.