From 7b20b1c2f9840c30b466dd4118ac4cf03d96c3ae Mon Sep 17 00:00:00 2001 From: Hangjie Mo Date: Mon, 13 Feb 2023 15:11:59 +0800 Subject: [PATCH] stmtsummary: fix panic in test --- util/stmtsummary/v2/tests/table_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/stmtsummary/v2/tests/table_test.go b/util/stmtsummary/v2/tests/table_test.go index 9403a0f8a3b4c..3712148e7e38e 100644 --- a/util/stmtsummary/v2/tests/table_test.go +++ b/util/stmtsummary/v2/tests/table_test.go @@ -515,9 +515,9 @@ func setupStmtSummary() { } func closeStmtSummary() { - stmtsummaryv2.GlobalStmtSummary.Close() - stmtsummaryv2.GlobalStmtSummary = nil config.UpdateGlobal(func(conf *config.Config) { conf.Instance.StmtSummaryEnablePersistent = false }) + stmtsummaryv2.GlobalStmtSummary.Close() + stmtsummaryv2.GlobalStmtSummary = nil }