From 2b8f6a6be6a283b8cfc0f4b348092d897573cc5a Mon Sep 17 00:00:00 2001 From: August Date: Fri, 20 Sep 2024 18:57:51 +0800 Subject: [PATCH] fix: fix flaky simulation integration test cancel ddl (#18626) --- .../tests/integration_tests/recovery/background_ddl.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tests/simulation/tests/integration_tests/recovery/background_ddl.rs b/src/tests/simulation/tests/integration_tests/recovery/background_ddl.rs index 8585867bd75a..f47f05c4f0c8 100644 --- a/src/tests/simulation/tests/integration_tests/recovery/background_ddl.rs +++ b/src/tests/simulation/tests/integration_tests/recovery/background_ddl.rs @@ -215,6 +215,7 @@ async fn test_ddl_cancel() -> Result<()> { let pid = line.split_whitespace().next().unwrap(); let pid = pid.parse::().unwrap(); session.run(format!("kill {};", pid)).await?; + sleep(Duration::from_secs(10)).await; break; } sleep(Duration::from_secs(2)).await;