Mercurial > crates > systemd-socket
changeset 8:372afb9a700f
Prolong waiting for bind
It looks like 1 second of waiting is still too low.
author | Martin Habovstiak <martin.habovstiak@gmail.com> |
---|---|
date | Fri, 27 Nov 2020 16:33:47 +0100 |
parents | 9731ff589d9c |
children | 4fb70ca820a6 |
files | tests/comm.rs |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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");