From f4408f38a3a0b0803daa0dc3e44df79291f52c87 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 30 Jun 2018 14:59:11 +0200 Subject: [PATCH] torture: Give sshd at least 100ms to start. This should avoid some 'No route to host' errors. Signed-off-by: Andreas Schneider --- tests/torture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/torture.c b/tests/torture.c index 9fe4ce77..3640f78c 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -725,8 +725,8 @@ void torture_setup_sshd_server(void **state) rc = system(sshd_start_cmd); assert_return_code(rc, errno); - /* Give the process some time to start */ - usleep(10000); + /* Give the process 100ms time to initialize and start */ + usleep(100 * 1000); setenv("SOCKET_WRAPPER_DEFAULT_IFACE", "21", 1); unsetenv("PAM_WRAPPER");