# HG changeset patch # User Martin Habovstiak # Date 1606491227 -3600 # Node ID 372afb9a700f045dbd918e5a57401b203bf770b6 # Parent 9731ff589d9c65fe543255fb34eeda2a821c6000 Prolong waiting for bind It looks like 1 second of waiting is still too low. diff -r 9731ff589d9c -r 372afb9a700f tests/comm.rs --- a/tests/comm.rs Fri Nov 27 16:29:09 2020 +0100 +++ b/tests/comm.rs Fri Nov 27 16:33:47 2020 +0100 @@ -15,7 +15,7 @@ let mut slave = slave.expect("failed to run systemd-socket-activate"); // give slave some time to bind the socket just to be sure - std::thread::sleep(std::time::Duration::from_secs(1)); + std::thread::sleep(std::time::Duration::from_secs(5)); let mut client_socket = std::net::TcpStream::connect("127.0.0.1:4242").expect("Failed to connect to 127.0.0.1:4242"); client_socket.write_all(REQUEST).expect("failed to send data");