From 29be4cb7d0fbd29325c995a76ba1b1f47beecca5 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Fri, 9 Jan 2026 15:32:02 +0000 Subject: Fix sync tests after Syncing status introduction - Fix relay_connected() helper to check v >= 2 (Syncing/Connected states) - Fix unit test to use status value 3 (Connected) instead of 1 (Connecting) - Fix clippy warning: use .to_vec() instead of .iter().cloned().collect() All 61 sync integration tests now passing. All 238 unit tests passing. Clippy clean. --- src/sync/algorithms.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/sync/algorithms.rs') diff --git a/src/sync/algorithms.rs b/src/sync/algorithms.rs index 7536f41..39788bc 100644 --- a/src/sync/algorithms.rs +++ b/src/sync/algorithms.rs @@ -349,6 +349,9 @@ mod tests { last_connected: None, disconnected_at: None, announcements_synced: false, + historic_sync_completed: false, + historic_sync_completed_at: None, + historic_sync_had_failures: false, }, ); @@ -442,6 +445,9 @@ mod tests { last_connected: None, disconnected_at: None, announcements_synced: false, + historic_sync_completed: false, + historic_sync_completed_at: None, + historic_sync_had_failures: false, }, ); @@ -476,6 +482,9 @@ mod tests { last_connected: None, disconnected_at: None, announcements_synced: false, + historic_sync_completed: false, + historic_sync_completed_at: None, + historic_sync_had_failures: false, }, ); @@ -537,6 +546,9 @@ mod tests { last_connected: None, disconnected_at: None, announcements_synced: false, + historic_sync_completed: false, + historic_sync_completed_at: None, + historic_sync_had_failures: false, }, ); -- cgit v1.2.3