From 9f15929b10825c2f55434a98794fc551794cad2b Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Mon, 23 Feb 2026 09:22:41 +0000 Subject: remove recursive relay discovery test Recursive discovery relied on announcement events being gossiped across relays regardless of whether they listed the service. Now that announcements enter purgatory until state event and git data arrive, cross-relay discovery cannot be triggered by a synced announcement alone, making the three-relay recursive discovery scenario impossible. --- tests/sync/mod.rs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'tests/sync/mod.rs') diff --git a/tests/sync/mod.rs b/tests/sync/mod.rs index 400341f..70c6981 100644 --- a/tests/sync/mod.rs +++ b/tests/sync/mod.rs @@ -82,14 +82,12 @@ //! **Example from `discovery.rs`:** //! ```rust //! #[tokio::test] -//! async fn test_recursive_relay_discovery() { +//! async fn test_discovers_layer3_via_layer2() { //! // Multi-relay orchestration -//! let relay1 = TestRelay::start().await; -//! let relay2 = TestRelay::start().await; -//! let relay3 = TestRelay::start().await; +//! let relay_a = TestRelay::start().await; +//! let relay_b = TestRelay::start_with_sync(None).await; //! -//! // relay1 announces relay2, relay2 announces relay3 -//! // Verify relay1 discovers relay3 through chain +//! // relay_b receives announcement listing relay_a, discovers and syncs from it //! } //! ``` //! -- cgit v1.2.3