(ntp_adjtime: T)
| 115 | } |
| 116 | |
| 117 | #[test] |
| 118 | fn running_applies_offset_on_each_tick() { |
| 119 | let mut mock = MockNtpAdjTimeExt::new(); |
| 120 | mock.expect_apply_phase_correction_smooth() |
| 121 | .times(3) |
| 122 | .returning(|_| Ok(crate::daemon::time::timex::Timex::retrieve())); |
| 123 | |
| 124 | let mut adjuster = ClockAdjuster::new(mock); |
| 125 | adjuster.handle_clock_parameters(&clock_params_with_offset(Duration::from_millis(100))); |
nothing calls this directly
no test coverage detected