diff options
| author | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:42:09 +0000 |
|---|---|---|
| committer | DanConwayDev <DanConwayDev@protonmail.com> | 2026-02-26 15:42:09 +0000 |
| commit | 9d86cf15f0275ffeee4519bd054e3b61dc8992ac (patch) | |
| tree | 65b5d5ffb2a11b5ecd05d01e63fb5a4a0f8b6e06 /tests/purgatory_sync.rs | |
| parent | a2ecfc5a63311570f0f90c7ee40117e289639cb8 (diff) | |
chore: apply cargo fmt and fix clippy warnings
Fix pre-existing clippy lints:
- &PathBuf -> &Path in audit_cleanup.rs
- too_many_arguments on process_newly_available_git_data,
process_purgatory_announcements, and HttpService::new
- clone_on_copy for PublicKey (Copy type) in purgatory cleanup loop
Diffstat (limited to 'tests/purgatory_sync.rs')
| -rw-r--r-- | tests/purgatory_sync.rs | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/tests/purgatory_sync.rs b/tests/purgatory_sync.rs index eefd6bc..ced39ff 100644 --- a/tests/purgatory_sync.rs +++ b/tests/purgatory_sync.rs | |||
| @@ -711,15 +711,10 @@ async fn test_concurrent_state_and_pr_sync() { | |||
| 711 | ); | 711 | ); |
| 712 | 712 | ||
| 713 | // Check refs/nostr/<event-id> points to pr_commit | 713 | // Check refs/nostr/<event-id> points to pr_commit |
| 714 | let pr_ref_correct = check_ref_at_commit( | 714 | let pr_ref_correct = |
| 715 | &syncing_domain, | 715 | check_ref_at_commit(&syncing_domain, &npub, identifier, &pr_ref_name, &pr_commit) |
| 716 | &npub, | 716 | .await |
| 717 | identifier, | 717 | .expect("Failed to check PR ref"); |
| 718 | &pr_ref_name, | ||
| 719 | &pr_commit, | ||
| 720 | ) | ||
| 721 | .await | ||
| 722 | .expect("Failed to check PR ref"); | ||
| 723 | 718 | ||
| 724 | assert!( | 719 | assert!( |
| 725 | pr_ref_correct, | 720 | pr_ref_correct, |
| @@ -993,7 +988,7 @@ async fn test_pr_event_clone_tag_sync_with_partial_oid_aggregation_from_multiple | |||
| 993 | let syncing_relay = TestRelay::start_on_port_with_options( | 988 | let syncing_relay = TestRelay::start_on_port_with_options( |
| 994 | syncing_port, | 989 | syncing_port, |
| 995 | Some(source_grasp.url().to_string()), // Bootstrap from source_grasp | 990 | Some(source_grasp.url().to_string()), // Bootstrap from source_grasp |
| 996 | true, // Disable negentropy - MockRelay doesn't support NIP-77 | 991 | true, // Disable negentropy - MockRelay doesn't support NIP-77 |
| 997 | ) | 992 | ) |
| 998 | .await; | 993 | .await; |
| 999 | 994 | ||