fix regression tests

This commit is contained in:
Dietmar Maurer
2021-09-10 12:45:06 +02:00
parent 6227654ad8
commit 67a5cf4714
6 changed files with 22 additions and 40 deletions

View File

@ -8,6 +8,8 @@ extern crate nix;
use proxmox::try_block;
use pbs_api_types::{Authid, UPID};
use proxmox_backup::server;
use proxmox_backup::tools;
@ -59,7 +61,7 @@ fn worker_task_abort() -> Result<(), Error> {
let res = server::WorkerTask::new_thread(
"garbage_collection",
None,
proxmox_backup::api2::types::Authid::root_auth_id().clone(),
Authid::root_auth_id().clone(),
true,
move |worker| {
println!("WORKER {}", worker);
@ -84,7 +86,7 @@ fn worker_task_abort() -> Result<(), Error> {
}
Ok(wid) => {
println!("WORKER: {}", wid);
server::abort_worker_async(wid.parse::<server::UPID>().unwrap());
server::abort_worker_async(wid.parse::<UPID>().unwrap());
}
}
});