aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/update_logic.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/update_logic.rs b/tests/update_logic.rs
index 2b74606..ad24a17 100644
--- a/tests/update_logic.rs
+++ b/tests/update_logic.rs
@@ -3,6 +3,8 @@ use std::path::Path;
use std::process::{Command, Output};
use eyre::{Result, WrapErr};
+use std::thread::sleep;
+use std::time::Duration;
type R = Result<()>;
@@ -39,6 +41,8 @@ based-on-what: based-on-this
assert!(result.status.success());
assert!(!String::from_utf8(result.stdout)?.contains("echo hi"));
+ sleep(Duration::from_millis(100));
+
fs::write(dir.path().join("based-on-this"), "")?;
let result = make(&dir)?;
assert!(result.status.success());