diff --git a/clippy_dev/src/sync.rs b/clippy_dev/src/sync.rs index 0f08f143c44a..38f4e4203305 100644 --- a/clippy_dev/src/sync.rs +++ b/clippy_dev/src/sync.rs @@ -29,8 +29,8 @@ fn start_josh() -> impl Drop { let josh = cmd .spawn() .expect("failed to start josh-proxy, make sure it is installed"); - // Give it some time so hopefully the port is open. (100ms was not enough.) - std::thread::sleep(std::time::Duration::from_millis(200)); + // Give it some time so hopefully the port is open. + std::thread::sleep(std::time::Duration::from_secs(1)); // Create a wrapper that stops it on drop. struct Josh(process::Child); @@ -44,7 +44,7 @@ fn start_josh() -> impl Drop { .output() .expect("failed to SIGINT josh-proxy"); // Sadly there is no "wait with timeout"... so we just give it some time to finish. - std::thread::sleep(std::time::Duration::from_millis(100)); + std::thread::sleep(std::time::Duration::from_secs(1)); // Now hopefully it is gone. if self.0.try_wait().expect("failed to wait for josh-proxy").is_some() { return;