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/purgatory/sync/context.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/purgatory/sync/context.rs') diff --git a/src/purgatory/sync/context.rs b/src/purgatory/sync/context.rs index 1c2d7f2..4d34c7c 100644 --- a/src/purgatory/sync/context.rs +++ b/src/purgatory/sync/context.rs @@ -648,10 +648,9 @@ pub mod mock { )]; // Create a single clone tag with multiple values (NIP-34 format) - let clone_values: Vec = self.clone_urls.iter().cloned().collect(); tags.push(nostr_sdk::Tag::custom( nostr_sdk::TagKind::Custom("clone".into()), - clone_values, + self.clone_urls.to_vec(), )); let event = EventBuilder::new(Kind::from(30617), "") -- cgit v1.2.3