From 4230942df6f4a2bd690b296e38b34a35f3af3d0d Mon Sep 17 00:00:00 2001 From: Jason Mo Date: Fri, 2 Feb 2024 11:30:54 +0800 Subject: [PATCH] add sleep time for TestMemoryUsageAndOpsHistory test --- pkg/infoschema/test/clustertablestest/tables_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/infoschema/test/clustertablestest/tables_test.go b/pkg/infoschema/test/clustertablestest/tables_test.go index 846589517a896..4a72985b64448 100644 --- a/pkg/infoschema/test/clustertablestest/tables_test.go +++ b/pkg/infoschema/test/clustertablestest/tables_test.go @@ -1298,7 +1298,7 @@ func TestMemoryUsageAndOpsHistory(t *testing.T) { }() gctuner.GlobalMemoryLimitTuner.Start() defer func() { - time.Sleep(1 * time.Second) // Wait tuning finished. + time.Sleep(1200 * time.Millisecond) // Wait tuning finished. }() tk.MustExec("set global tidb_mem_oom_action = 'CANCEL'") tk.MustExec("set global tidb_server_memory_limit=512<<20")