From 339b0c02f2cec25ae804dc882f5ce7d1dd58b9a6 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 5 Dec 2025 12:03:52 +0000 Subject: rename sunc_bootstrap_relay_url --- tests/common/relay.rs | 14 +++++++------- tests/proactive_sync_multi.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/common/relay.rs b/tests/common/relay.rs index 21d6deb..dbfd8de 100644 --- a/tests/common/relay.rs +++ b/tests/common/relay.rs @@ -41,7 +41,7 @@ impl TestRelay { Self::start_with_options(port, None).await } - /// Start relay with sync from another relay + /// Start relay with sync from another relay (bootstrap relay) /// /// # Example /// @@ -57,12 +57,12 @@ impl TestRelay { /// source.stop().await; /// } /// ``` - pub async fn start_with_sync(sync_relay_url: &str) -> Self { - Self::start_with_options(Self::find_free_port(), Some(sync_relay_url.to_string())).await + pub async fn start_with_sync(bootstrap_relay_url: &str) -> Self { + Self::start_with_options(Self::find_free_port(), Some(bootstrap_relay_url.to_string())).await } /// Start relay with options - async fn start_with_options(port: u16, sync_relay_url: Option) -> Self { + async fn start_with_options(port: u16, bootstrap_relay_url: Option) -> Self { let bind_address = format!("127.0.0.1:{}", port); let url = format!("ws://127.0.0.1:{}", port); @@ -97,9 +97,9 @@ impl TestRelay { .stdout(Stdio::null()) .stderr(Stdio::null()); - // Add sync relay URL if provided - if let Some(ref sync_url) = sync_relay_url { - cmd.env("NGIT_SYNC_RELAY_URL", sync_url); + // Add bootstrap relay URL if provided + if let Some(ref bootstrap_url) = bootstrap_relay_url { + cmd.env("NGIT_SYNC_BOOTSTRAP_RELAY_URL", bootstrap_url); } let process = cmd.spawn().expect("Failed to start relay process"); diff --git a/tests/proactive_sync_multi.rs b/tests/proactive_sync_multi.rs index ee29f24..e07ddbe 100644 --- a/tests/proactive_sync_multi.rs +++ b/tests/proactive_sync_multi.rs @@ -170,7 +170,7 @@ async fn test_sync_configuration_applied() { tokio::time::sleep(Duration::from_millis(300)).await; // Both relays should be running - // The sync relay has NGIT_SYNC_RELAY_URL set (verified by relay starting) + // The sync relay has NGIT_SYNC_BOOTSTRAP_RELAY_URL set (verified by relay starting) let client_source = Client::default(); client_source -- cgit v1.2.3