aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.c
diff options
context:
space:
mode:
authorAnoop C S <anoopcs@redhat.com>2017-02-23 10:52:47 +0000
committerAndreas Schneider <asn@samba.org>2017-02-27 11:12:29 +0100
commit68e1cbf73e59954116fd0e7ef98c6e68c5aa0b9a (patch)
tree9d006979fa61c2a28a15b35cd43976f7c9beb46a /tests/torture.c
parent5af15532cefecb5665736f30e00960c17700d1b0 (diff)
downloadsocket_wrapper-68e1cbf73e59954116fd0e7ef98c6e68c5aa0b9a.tar.gz
socket_wrapper-68e1cbf73e59954116fd0e7ef98c6e68c5aa0b9a.tar.xz
socket_wrapper-68e1cbf73e59954116fd0e7ef98c6e68c5aa0b9a.zip
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 <anoopcs@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'tests/torture.c')
-rw-r--r--tests/torture.c2
1 files changed, 1 insertions, 1 deletions
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);