prcs unittests fix --no-abs-path
parent
406b199b09
commit
1884469c9e
|
|
@ -233,10 +233,10 @@ mod process_unittests {
|
|||
// rewrite, its a pipe
|
||||
#[tokio::test]
|
||||
async fn full_cycle_with_restart() {
|
||||
let res1 = start_process("temp-process", "/home/user/monitor/runner-rs/temp-process").await;
|
||||
let res1 = start_process("temp-process", "./temp-process").await;
|
||||
assert!(res1.is_ok());
|
||||
let res2 =
|
||||
restart_process("temp-process", "/home/user/monitor/runner-rs/temp-process").await;
|
||||
restart_process("temp-process", "./temp-process").await;
|
||||
assert!(res2.is_ok());
|
||||
let _ = terminate_process("temp-process").await;
|
||||
let res3 = is_active("temp-process").await;
|
||||
|
|
@ -249,7 +249,10 @@ mod process_unittests {
|
|||
}
|
||||
#[tokio::test]
|
||||
async fn is_active_check() {
|
||||
assert!(is_active("systemd").await);
|
||||
let res1 = start_process("tmp-prc", "./tests/examples/tmp-prc").await;
|
||||
assert!(res1.is_ok());
|
||||
assert!(is_active("tmp-prc").await);
|
||||
let _ = terminate_process("tmp-prc").await;
|
||||
}
|
||||
#[tokio::test]
|
||||
async fn isnt_active_check() {
|
||||
|
|
@ -257,7 +260,9 @@ mod process_unittests {
|
|||
}
|
||||
#[tokio::test]
|
||||
async fn is_frozen_check() {
|
||||
assert!(!is_frozen("systemd").await);
|
||||
let res1 = start_process("freeze-check", "./tests/examples/freeze-check").await;
|
||||
assert!(res1.is_ok());
|
||||
assert!(!is_frozen("freeze-check").await);
|
||||
}
|
||||
#[tokio::test]
|
||||
async fn pidof_active_process() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue