give josh more time to start
This commit is contained in:
parent
f2568c8316
commit
83ae1e6d35
@ -102,8 +102,8 @@ fn start_josh() -> Result<impl Drop> {
|
||||
cmd.stdout(process::Stdio::null());
|
||||
cmd.stderr(process::Stdio::null());
|
||||
let josh = cmd.spawn().context("failed to start josh-proxy, make sure it is installed")?;
|
||||
// Give it some time so hopefully the port is open. (10ms was not enough.)
|
||||
thread::sleep(time::Duration::from_millis(100));
|
||||
// Give it some time so hopefully the port is open. (100ms was not enough.)
|
||||
thread::sleep(time::Duration::from_millis(200));
|
||||
|
||||
// Create a wrapper that stops it on drop.
|
||||
struct Josh(process::Child);
|
||||
|
Loading…
Reference in New Issue
Block a user