From 4add8e063441e9bdadd39041bd2244381567013b Mon Sep 17 00:00:00 2001 From: Chris Olszewski Date: Mon, 22 May 2023 15:31:56 -0700 Subject: [PATCH] add short sleep to repo root removal --- crates/turborepo-lib/src/globwatcher/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/turborepo-lib/src/globwatcher/mod.rs b/crates/turborepo-lib/src/globwatcher/mod.rs index 235ddaf5a8f81..976ea9e78b11b 100644 --- a/crates/turborepo-lib/src/globwatcher/mod.rs +++ b/crates/turborepo-lib/src/globwatcher/mod.rs @@ -689,7 +689,7 @@ mod test { // dropped when the test ends let task = tokio::task::spawn(async move { task_watcher.watch(token).await }); - + tokio::time::sleep(Duration::from_secs(3)).await; watcher.config.flush().await.unwrap(); std::fs::remove_dir_all(dir.path()).unwrap();