diff options
| author | aur-build <aur-build@localhost> | 2026-11-19 17:33:17 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-19 17:33:17 +0000 |
| commit | 4304b0f336ddba7b4ec6780795059ff2066d105b (patch) | |
| tree | 10edea744a1c2bf3fc363b4dc7f64abac8b1a0d3 /tests/time.rs | |
| parent | e757979f1a2afdbe7146066345bb9acd19d3b151 (diff) | |
| download | aur-build-4304b0f336ddba7b4ec6780795059ff2066d105b.tar.gz aur-build-4304b0f336ddba7b4ec6780795059ff2066d105b.zip | |
comments: keep only what the code cannot show
Stripped every comment that described what an item does, documented its
arguments or fields, or cited the design docs (§n, I-n, m-n, decision n).
2247 comments down to 83.
What survives: the section dividers that segment the large modules, the
secret-handling warnings, the agent wire-frame directions, and the few notes
without which the code they attach to reads as redundant, reorderable, or
unsound.
Diffstat (limited to 'tests/time.rs')
| -rw-r--r-- | tests/time.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/time.rs b/tests/time.rs index 6ab0665..3d4a203 100644 --- a/tests/time.rs +++ b/tests/time.rs @@ -6,9 +6,6 @@ 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 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"); @@ -40,9 +37,7 @@ fn a_lease_taken_under_a_pinned_clock_expires_against_that_clock() { Some("2026-01-01T00:01:30Z"), "the lease must be 90 seconds after the pinned now, not the real one" ); - // Still inside the lease: nothing to reap. assert_eq!(builds::reap_expired(&env.db).unwrap(), 0); - // Ninety-one seconds of pinned time pass, and the reaper sees it. time::pin("2026-01-01T00:01:31Z"); assert_eq!(builds::reap_expired(&env.db).unwrap(), 1); assert_eq!(builds::get(&env.db, "b1").unwrap().unwrap().state, BuildState::Queued); |
