Skip to content

Commit

Permalink
fixup! Josh preparations
Browse files Browse the repository at this point in the history
  • Loading branch information
flip1995 committed May 2, 2024
1 parent d3d4b49 commit 764232b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clippy_dev/src/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand Down

0 comments on commit 764232b

Please sign in to comment.