From 51c5397d8f34a81970c9e86f46e015a1321f361b Mon Sep 17 00:00:00 2001 From: michel Date: Sun, 19 Jul 2026 17:35:24 +0200 Subject: [PATCH] style: use Duration::from_secs for whole-second sleeps in e2e Satisfies clippy::duration_suboptimal_units (a stable-toolchain lint the local nightly did not surface), unblocking the CI Lint job. --- soulseek-rs-lib/tests/e2e.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soulseek-rs-lib/tests/e2e.rs b/soulseek-rs-lib/tests/e2e.rs index c20e847..f1548a2 100644 --- a/soulseek-rs-lib/tests/e2e.rs +++ b/soulseek-rs-lib/tests/e2e.rs @@ -842,7 +842,7 @@ fn a_file_downloads_from_a_peer_via_direct_connection() { .recv_timeout(Duration::from_secs(10)) .expect("mock direct peer ready"); // Let the server finish processing SetWaitPort before we resolve the address. - std::thread::sleep(Duration::from_millis(1000)); + std::thread::sleep(Duration::from_secs(1)); // Target the plain username so download() takes the direct-connect path. let (_download, status_rx) = client @@ -1002,7 +1002,7 @@ fn a_file_downloads_from_a_firewalled_peer_via_server_broker() { ready_rx .recv_timeout(Duration::from_secs(10)) .expect("mock firewalled peer ready"); - std::thread::sleep(Duration::from_millis(1000)); + std::thread::sleep(Duration::from_secs(1)); let (_download, status_rx) = client .download(