diff --git a/commons/zenoh-sync/src/event.rs b/commons/zenoh-sync/src/event.rs index bf711b43f4..e6ec70c1a3 100644 --- a/commons/zenoh-sync/src/event.rs +++ b/commons/zenoh-sync/src/event.rs @@ -426,12 +426,13 @@ mod tests { #[test] fn event_deadline() { - use crate::WaitDeadlineError; use std::{ sync::{Arc, Barrier}, time::{Duration, Instant}, }; + use crate::WaitDeadlineError; + let barrier = Arc::new(Barrier::new(2)); let (notifier, waiter) = super::new(); let tslot = Duration::from_secs(1);