update tests

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller committed 2019-12-13 12:42:02 +01:00
1 parent b5c9a706ce
commit f374ba4c0b
2 files changed
+6 -5

No files matched your search

+1 -2
View File
@@ -39,7 +39,7 @@ fn worker_task_abort() -> Result<(), Error> {
let errmsg: Arc<Mutex<Option<String>>> = Arc::new(Mutex::new(None));
let errmsg1 = errmsg.clone();
let rt = tokio::runtime::Runtime::new().unwrap();
let mut rt = tokio::runtime::Runtime::new().unwrap();
rt.block_on(async move {
let init_result: Result<(), Error> = try_block!({
@@ -80,7 +80,6 @@ fn worker_task_abort() -> Result<(), Error> {
}
}
});
rt.shutdown_on_idle();
let data = errmsg.lock().unwrap();
match *data {