diff --git a/src/factotum/executor/execution_strategy/tests.rs b/src/factotum/executor/execution_strategy/tests.rs index b30d814..5cc58b1 100644 --- a/src/factotum/executor/execution_strategy/tests.rs +++ b/src/factotum/executor/execution_strategy/tests.rs @@ -43,7 +43,10 @@ use chrono::duration::Duration; assert_eq!(result.return_code, 127); assert!(result.run_started > UTC::now().checked_sub(Duration::seconds(60)).unwrap()); assert_eq!(result.duration.as_secs(), 0); - assert_eq!(result.stderr.unwrap(), "sh: 1: banana: not found"); + let stderr = result.stderr.unwrap(); + println!("{}", stderr); + assert!(stderr.contains("banana")); + assert!(stderr.contains("not found")); assert_eq!(result.stdout, None); assert_eq!(result.task_execution_error, None) }