diff --git a/src/utils/prcs.rs b/src/utils/prcs.rs index 4f5d2b7..3a68b56 100644 --- a/src/utils/prcs.rs +++ b/src/utils/prcs.rs @@ -235,14 +235,14 @@ mod process_unittests { #[tokio::test] async fn full_cycle_with_restart() { // let _ = std::io::stdout().write_all(b""); - let res1 = start_process("temp-process", "./temp-process").await; + let res1 = start_process("restart-prc", "./tests/examples/restart-prc").await; assert!(res1.is_ok()); let res2 = - restart_process("temp-process", "./temp-process").await; + restart_process("restart-prc", "./tests/examples/restart-prc").await; assert!(res2.is_ok()); - let _ = terminate_process("temp-process").await; - let res3 = is_active("temp-process").await; - assert!(res3); + let _ = terminate_process("restart-prc").await; + let res3 = is_active("restart-prc").await; + assert!(!res3); } // rewrite, its a pipe #[tokio::test] diff --git a/tests/examples/restart-prc b/tests/examples/restart-prc new file mode 100755 index 0000000..704d548 Binary files /dev/null and b/tests/examples/restart-prc differ