Skip to content

Commit

Permalink
fix(daemon): add short sleep to repo root removal (#5067)
Browse files Browse the repository at this point in the history
### Description

Add a short delay to our repo root removal to ensure that we are
watching the config flush directory before we attempt to flush it. This
should be a super short lived hack

### Testing Instructions

CI

Co-authored-by: Chris Olszewski <Chris Olszewski>
  • Loading branch information
chris-olszewski authored May 22, 2023
1 parent bad4aaf commit 59ed484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turborepo-lib/src/globwatcher/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 59ed484

Please sign in to comment.