diff --git a/crates/ecstore/src/store/multipart.rs b/crates/ecstore/src/store/multipart.rs index 3668b6a8f..b320d6074 100644 --- a/crates/ecstore/src/store/multipart.rs +++ b/crates/ecstore/src/store/multipart.rs @@ -417,6 +417,7 @@ mod tests { decommission_cancelers: RwLock::new(Vec::new()), start_gate: Mutex::new(()), pool_meta_save_gate: Mutex::new(()), + ctx: crate::runtime::instance::bootstrap_ctx(), } } diff --git a/crates/protocols/src/swift/expiration_worker.rs b/crates/protocols/src/swift/expiration_worker.rs index 7aeb88a86..e9f409404 100644 --- a/crates/protocols/src/swift/expiration_worker.rs +++ b/crates/protocols/src/swift/expiration_worker.rs @@ -984,10 +984,7 @@ mod tests { let tracked = match worker.scan_all_objects_with_backend(&backend).await { Ok(tracked) => tracked, - Err(err) => { - assert!(false, "scan candidates should be tracked: {err}"); - 0 - } + Err(err) => panic!("scan candidates should be tracked: {err}"), }; assert_eq!(tracked, 2);