prc unit-tests fix
parent
363d38bdb6
commit
3a51ea1418
|
|
@ -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]
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in New Issue