From 6ad7136027c56c3a523278d90ade3da018e39273 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Thu, 18 Dec 2025 16:46:53 +0000 Subject: sync: turn off negentropy and fix some tests --- tests/common/sync_helpers.rs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/common/sync_helpers.rs') diff --git a/tests/common/sync_helpers.rs b/tests/common/sync_helpers.rs index 7fa0393..e07ad1f 100644 --- a/tests/common/sync_helpers.rs +++ b/tests/common/sync_helpers.rs @@ -792,6 +792,14 @@ impl MetricsTestHarness { self.syncing_relay = Some(TestRelay::start_with_sync(Some(source_url)).await); } + /// Start syncing relay on a specific port pointing to source[idx] + pub async fn start_syncing_relay_on_port(&mut self, source_idx: usize, port: u16) { + let source_url = self.source_relays[source_idx].url().to_string(); + self.syncing_relay = Some( + TestRelay::start_on_port_with_options(port, Some(source_url), false).await, + ); + } + /// Start syncing relay pointing to random unused port (for failure tests) pub async fn start_syncing_relay_to_nowhere(&mut self) { let port = random_unused_port(); -- cgit v1.2.3