diff options
Diffstat (limited to 'tests/time.rs')
| -rw-r--r-- | tests/time.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/time.rs b/tests/time.rs index 281d78a..6ab0665 100644 --- a/tests/time.rs +++ b/tests/time.rs @@ -1,5 +1,3 @@ -//! The clock helpers (§16) and the pinned clock the lease tests depend on (§6 m-1). - mod common; use aur_build::db::{builds, BuildState}; @@ -8,10 +6,9 @@ use common::Env; #[test] fn a_pinned_clock_moves_relative_arithmetic_with_it() { - // The finding: `now()` honored the pinned clock but `secs_ago` and - // `secs_ahead` read the wall clock, so a pinned test computed real-clock - // lease expiries and deadlines while comparing them against the pinned - // "now" — the two never met, and the test proved nothing about expiry. + // The finding: `now()` honored the pinned clock but `secs_ago` and `secs_ahead` + // read the wall clock, so a pinned test computed real-clock expiries while + // comparing them against the pinned "now". time::pin("2026-01-01T00:00:00Z"); assert_eq!(time::now(), "2026-01-01T00:00:00Z"); assert_eq!(time::secs_ahead(90), "2026-01-01T00:01:30Z"); |
