Files
ngit-grasp/tests/common
DanConwayDevandClaude Fable 5.1 47af1bf6cb test(common): add bounded served and absent waits
The lifecycle suites pace their assertions with fixed sleeps after each
send. The relay applies NIP-09 and NIP-62 effects inside the write
policy before it replies, so an awaited send already proves them, but
promotion after a Git push and archive recovery complete in spawned
tasks and need an observable wait.

Add `wait_for`, a bounded 50 ms poll with a descriptive timeout panic,
and express the existing private `wait_until_served` through it. Add
`wait_until_not_served` for absence assertions. Both are public so the
suites can replace their sleeps with waits on the served state itself.

Validation: `cargo check -p ngit-grasp --tests`.

Assisted-by: Claude Fable 5.1
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-18 14:23:09 +00:00
..