From 4e39ac03fee021c17fc8d6eccf88afe19178976b Mon Sep 17 00:00:00 2001 From: Shenghui Wu <793703860@qq.com> Date: Wed, 31 Aug 2022 10:18:23 +0800 Subject: [PATCH] executor: remove some useless sleep in test case (#37475) --- executor/tiflashtest/tiflash_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/executor/tiflashtest/tiflash_test.go b/executor/tiflashtest/tiflash_test.go index 514e23360d245..5725ca22df4e2 100644 --- a/executor/tiflashtest/tiflash_test.go +++ b/executor/tiflashtest/tiflash_test.go @@ -1138,7 +1138,6 @@ func TestTiflashPartitionTableScan(t *testing.T) { tb := external.GetTableByName(t, tk, "test", "t") err := domain.GetDomain(tk.Session()).DDL().UpdateTableReplicaInfo(tk.Session(), tb.Meta().ID, true) require.NoError(t, err) - time.Sleep(2 * time.Second) tk.MustExec("insert into t values(1),(11),(21),(31),(41);") tk.MustExec("set @@tidb_partition_prune_mode = 'dynamic';") tk.MustExec("set @@session.tidb_isolation_read_engines=\"tiflash\";") @@ -1215,7 +1214,6 @@ func TestTiflashEmptyDynamicPruneResult(t *testing.T) { tb := external.GetTableByName(t, tk, "test", "IDT_RP24833") err := domain.GetDomain(tk.Session()).DDL().UpdateTableReplicaInfo(tk.Session(), tb.Meta().ID, true) require.NoError(t, err) - time.Sleep(2 * time.Second) tk.MustExec("insert into IDT_RP24833 values(-8448770111093677011, \"郇鋺篤堯擈斥鍮啸赠璭饱磟朅闑傒聎疫ᛄ怖霃\", \"8781-05-02 04:23:03\", -27252736532807028, -1.34554e38);") tk.MustExec("set @@tidb_partition_prune_mode = 'dynamic';")