upleb.uk

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

summaryrefslogtreecommitdiff
path: root/tests/proactive_sync_basic.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2025-12-10 16:13:51 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2025-12-10 16:13:51 +0000
commitd08878d0b9a8738e57e457a916677d2061775cbd (patch)
tree7bbb4a185304615e4cc587cd23052de7a7cfea3a /tests/proactive_sync_basic.rs
parent8148c27a1350189046bc8e215f29f918dd8747f5 (diff)
Phase 5: Migrate bootstrap and discovery tests
Create organized test structure for proactive sync: tests/common/sync_helpers.rs (from Phase 4): - TestClient with retry logic for connect/send - Event builders: build_layer2_issue_event, build_layer3_comment_event - Tag variants (a/A/q for Layer 2, e/E/q for Layer 3) - wait_for_event_on_relay() assertion helper - repo_coord() utility function - Unit tests for all builders tests/sync/mod.rs: - Module organization for sync tests - Documentation of test categories tests/sync.rs: - Main test harness including common and sync modules tests/sync/bootstrap.rs: - test_bootstrap_syncs_existing_layer2_events (Test 1) - test_relay_replays_events_after_restart (Test 4) tests/sync/discovery.rs: - test_discovers_layer3_via_layer2 (Test 2) - test_layer2_discovery_with_chain (Test 3 - simplified) All 14 tests pass: cargo test --test sync
Diffstat (limited to 'tests/proactive_sync_basic.rs')
0 files changed, 0 insertions, 0 deletions