From b3fa4a84c9d0c6b763c50cefaaea775011a943ea Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Fri, 16 Apr 2021 11:30:23 -0600 Subject: wait a bit in that test so it passes on a fast CI? i guess? --- tests/update_logic.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') 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()); -- cgit v1.2.3