diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 15:58:37 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 15:58:37 +0000 |
| commit | e557d07ddbb1ea1a8ca6604f9ba945f359f54ce7 (patch) | |
| tree | 7b8f3b64499b8917274394a80a8f5532d54a6491 /tests/common/git_server.rs | |
| parent | 049cff14fa731c95b9b0074f67469df3af19870b (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 'tests/common/git_server.rs')
0 files changed, 0 insertions, 0 deletions