diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 15:32:02 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-01-09 15:32:02 +0000 |
| commit | 29be4cb7d0fbd29325c995a76ba1b1f47beecca5 (patch) | |
| tree | 3f31325217e60d9b207753e70457648758249008 /src/purgatory/sync/context.rs | |
| parent | 208ea60836cfc98857cf3359a73d8874ed5d935a (diff) | |
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.
Diffstat (limited to 'src/purgatory/sync/context.rs')
| -rw-r--r-- | src/purgatory/sync/context.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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 { | |||
| 648 | )]; | 648 | )]; |
| 649 | 649 | ||
| 650 | // Create a single clone tag with multiple values (NIP-34 format) | 650 | // Create a single clone tag with multiple values (NIP-34 format) |
| 651 | let clone_values: Vec<String> = self.clone_urls.iter().cloned().collect(); | ||
| 652 | tags.push(nostr_sdk::Tag::custom( | 651 | tags.push(nostr_sdk::Tag::custom( |
| 653 | nostr_sdk::TagKind::Custom("clone".into()), | 652 | nostr_sdk::TagKind::Custom("clone".into()), |
| 654 | clone_values, | 653 | self.clone_urls.to_vec(), |
| 655 | )); | 654 | )); |
| 656 | 655 | ||
| 657 | let event = EventBuilder::new(Kind::from(30617), "") | 656 | let event = EventBuilder::new(Kind::from(30617), "") |