diff --git a/crates/core/src/commands/wait_event_tests.rs b/crates/core/src/commands/wait_event_tests.rs index 51f61b6038..261a66eea7 100644 --- a/crates/core/src/commands/wait_event_tests.rs +++ b/crates/core/src/commands/wait_event_tests.rs @@ -275,6 +275,7 @@ fn seeded_baseline_failure_is_not_disguised_as_timeout() { #[test] fn retryable_seed_inventory_failure_is_preserved_in_timeout_evidence() { + let _clock = crate::wait::deadline::VirtualClock::freeze(); let adapter = SequenceAdapter::new(vec![empty_baseline()]); let seed_error = AdapterError::app_unresponsive("macOS inventory").with_details(json!({ "kind": "inventory_sources", diff --git a/crates/core/src/commands/wait_scheduler.rs b/crates/core/src/commands/wait_scheduler.rs index 25d6065f99..32a63760b7 100644 --- a/crates/core/src/commands/wait_scheduler.rs +++ b/crates/core/src/commands/wait_scheduler.rs @@ -31,6 +31,6 @@ impl WaitScheduler { self.wakeup = None; return; } - std::thread::sleep(poll.remaining()); + crate::wait::deadline::sleep(poll.remaining()); } }