aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-16 11:30:23 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-16 11:30:23 -0600
commitb3fa4a84c9d0c6b763c50cefaaea775011a943ea (patch)
tree303c00a295c1d6b500a66a9ce648fc1d4394653f
parent4896ae35773d45735ee98d46d7dd905d68800405 (diff)
downloadmakers-b3fa4a84c9d0c6b763c50cefaaea775011a943ea.tar.gz
makers-b3fa4a84c9d0c6b763c50cefaaea775011a943ea.zip
wait a bit in that test so it passes on a fast CI? i guess?
-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());