diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 21:33:22 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-07 21:33:22 +0000 |
| commit | 0550b3229f35ef3ee125bac47d85bbd08d1250b1 (patch) | |
| tree | 15ff1f689f9c429ceda9f085973df3d06895714d /tests/purgatory_sync.rs | |
| parent | 7467aa9ace94b4e132eedd03c9daddb2d59813c4 (diff) | |
test: add WIP SmartHttpServer to test
Diffstat (limited to 'tests/purgatory_sync.rs')
| -rw-r--r-- | tests/purgatory_sync.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/purgatory_sync.rs b/tests/purgatory_sync.rs index fe03455..3f52e4c 100644 --- a/tests/purgatory_sync.rs +++ b/tests/purgatory_sync.rs | |||
| @@ -31,7 +31,7 @@ use common::{ | |||
| 31 | add_commit_to_repo, build_repo_coord, check_ref_at_commit, create_pr_event, | 31 | add_commit_to_repo, build_repo_coord, check_ref_at_commit, create_pr_event, |
| 32 | create_pr_event_with_clone, create_repo_announcement, create_state_event, | 32 | create_pr_event_with_clone, create_repo_announcement, create_state_event, |
| 33 | create_test_repo_with_commit, push_ref_to_relay, push_to_relay, verify_event_not_served, | 33 | create_test_repo_with_commit, push_ref_to_relay, push_to_relay, verify_event_not_served, |
| 34 | wait_for_event_served, wait_for_sync_connection, CommitVariant, MockRelay, SimpleGitServer, | 34 | wait_for_event_served, wait_for_sync_connection, CommitVariant, MockRelay, SmartGitServer, |
| 35 | TestRelay, | 35 | TestRelay, |
| 36 | }; | 36 | }; |
| 37 | use nostr_sdk::prelude::*; | 37 | use nostr_sdk::prelude::*; |
| @@ -759,8 +759,10 @@ async fn test_pr_event_clone_tag_sync_with_partial_oid_aggregation_from_multiple | |||
| 759 | // 2. mock_relay - rust-nostr relay for PR event (no validation, no purgatory) | 759 | // 2. mock_relay - rust-nostr relay for PR event (no validation, no purgatory) |
| 760 | let mock_relay = MockRelay::start().await; | 760 | let mock_relay = MockRelay::start().await; |
| 761 | 761 | ||
| 762 | // 3. git_server - SimpleGitServer with PR commit only | 762 | // 3. git_server - SmartGitServer with PR commit only |
| 763 | let git_server = SimpleGitServer::start(repo_b.path()).await; | 763 | // Using SmartGitServer because purgatory sync uses `git fetch --depth=1` |
| 764 | // which requires the Git Smart HTTP protocol (not dumb HTTP) | ||
| 765 | let git_server = SmartGitServer::start(repo_b.path()).await; | ||
| 764 | 766 | ||
| 765 | // 4. Pre-allocate syncing_relay port for announcement tags | 767 | // 4. Pre-allocate syncing_relay port for announcement tags |
| 766 | let syncing_port = TestRelay::find_free_port(); | 768 | let syncing_port = TestRelay::find_free_port(); |