prc unit-tests fix

pull/15/head
prplV 2024-12-02 11:42:17 +03:00
parent 363d38bdb6
commit 3a51ea1418
2 changed files with 5 additions and 5 deletions

View File

@ -235,14 +235,14 @@ mod process_unittests {
#[tokio::test] #[tokio::test]
async fn full_cycle_with_restart() { async fn full_cycle_with_restart() {
// let _ = std::io::stdout().write_all(b""); // 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()); assert!(res1.is_ok());
let res2 = let res2 =
restart_process("temp-process", "./temp-process").await; restart_process("restart-prc", "./tests/examples/restart-prc").await;
assert!(res2.is_ok()); assert!(res2.is_ok());
let _ = terminate_process("temp-process").await; let _ = terminate_process("restart-prc").await;
let res3 = is_active("temp-process").await; let res3 = is_active("restart-prc").await;
assert!(res3); assert!(!res3);
} }
// rewrite, its a pipe // rewrite, its a pipe
#[tokio::test] #[tokio::test]

BIN
tests/examples/restart-prc Executable file

Binary file not shown.