mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-05 23:18:24 +00:00
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>