mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-06 07:28:23 +00:00
Implements test_concurrent_state_and_pr_sync which verifies that when both a state event and a PR event for the same repository enter purgatory, both are correctly synced from a remote relay and released when git data arrives. The test: 1. Creates a source relay with a repo containing two commits 2. Sends both state event (referencing main branch) and PR event to source 3. Pushes git data to source relay, releasing both events from purgatory 4. Starts syncing relay that connects to source 5. Verifies both events sync to the syncing relay and are served 6. Confirms refs are correct (main branch and refs/nostr/<event-id>) This validates that the purgatory sync mechanism handles multiple concurrent events for the same repository without race conditions or conflicts.