From 1d452a97b2cd917ea706daba78108094cfdf2639 Mon Sep 17 00:00:00 2001 From: crazycs Date: Mon, 13 Feb 2023 14:56:01 +0800 Subject: [PATCH] infoschema: fix unstable test TestSelectClusterTable (#41321) close pingcap/tidb#41307 --- infoschema/cluster_tables_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infoschema/cluster_tables_test.go b/infoschema/cluster_tables_test.go index 53339ffc209ab..5ae331155c5dd 100644 --- a/infoschema/cluster_tables_test.go +++ b/infoschema/cluster_tables_test.go @@ -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")