Files
ngit-grasp/tests
DanConwayDevandClaude Fable 5.1 4cb642e10c test(nip09): assert on served state instead of sleeping
The NIP-09 conformance suite paused 200-300 ms after every send before
querying the relay. The relay applies a deletion inside its write policy
before replying `OK`, and a served Layer-2 event is queryable as soon as
its `OK` arrives, so the pauses proved nothing and cost 3.5 s per run.

Drop the pauses that followed an awaited send, and replace the pauses
that preceded an absence assertion with `wait_until_not_served`, a
bounded poll on the served state itself. The assertions are unchanged.

Validation: measured against master with the same binaries, 20 unloaded
runs and 30 samples as three concurrent instances under CPU spinners;
see the pull request description.

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