upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/git/protocol.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-01-07 15:58:37 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-01-07 15:58:37 +0000
commite557d07ddbb1ea1a8ca6604f9ba945f359f54ce7 (patch)
tree7b8f3b64499b8917274394a80a8f5532d54a6491 /src/git/protocol.rs
parent049cff14fa731c95b9b0074f67469df3af19870b (diff)
Add integration test for concurrent state and PR event sync
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.
Diffstat (limited to 'src/git/protocol.rs')
0 files changed, 0 insertions, 0 deletions