diff options
| author | Andres O. Vela <[email protected]> | 2023-10-29 20:03:11 +0100 |
|---|---|---|
| committer | Andres O. Vela <[email protected]> | 2023-10-29 20:03:11 +0100 |
| commit | 573734008a8a0659e6cfe832db382b9206e3f4f1 (patch) | |
| tree | 885a2ede01b24c961a940572591856bf1af5d7a2 /embassy-time/src/driver_mock.rs | |
| parent | f4a78e00a7a6a1e5046c8e6af2cc5c08df9d7bc1 (diff) | |
Fix test
Diffstat (limited to 'embassy-time/src/driver_mock.rs')
| -rw-r--r-- | embassy-time/src/driver_mock.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-time/src/driver_mock.rs b/embassy-time/src/driver_mock.rs index c7cab342f..becb6bfdd 100644 --- a/embassy-time/src/driver_mock.rs +++ b/embassy-time/src/driver_mock.rs | |||
| @@ -15,7 +15,7 @@ use crate::{Duration, Instant}; | |||
| 15 | /// | 15 | /// |
| 16 | /// ```ignore | 16 | /// ```ignore |
| 17 | /// fn has_a_second_passed(reference: Instant) -> bool { | 17 | /// fn has_a_second_passed(reference: Instant) -> bool { |
| 18 | /// Instant::now().duration_since(reference) > Duration::from_secs(1) | 18 | /// Instant::now().duration_since(reference) >= Duration::from_secs(1) |
| 19 | /// } | 19 | /// } |
| 20 | /// | 20 | /// |
| 21 | /// fn test_second_passed() { | 21 | /// fn test_second_passed() { |
