From 68e1cbf73e59954116fd0e7ef98c6e68c5aa0b9a Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 23 Feb 2017 10:52:47 +0000 Subject: Increase wait time during echo_server's pid-file check We used to sleep for 200 microseconds in each iteration for checking the existence of echo server's pid file which seems to be very short. In order to avoid chances of failures to detect this pid file within 100 such iterations its better to increase this wait time to 2000 microseconds. Signed-off-by: Anoop C S Reviewed-by: Andreas Schneider Reviewed-by: Michael Adam --- tests/torture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/torture.c b/tests/torture.c index d3ad84a..55c27c6 100644 --- a/tests/torture.c +++ b/tests/torture.c @@ -188,7 +188,7 @@ static void torture_setup_echo_srv_ip(void **state, } rc = stat(s->srv_pidfile, &sb); - usleep(200); + usleep(2000); } while (rc != 0); assert_int_equal(rc, 0); -- cgit