summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-09-27 18:19:42 +0200
committerAndreas Schneider <asn@samba.org>2018-10-23 15:39:27 +0200
commitc49a62956df63d8e2110de3a91bd69981a05a789 (patch)
treef53012f9f9f68eba9270d25ff22d59c026ac6e5f /tests
parent92891453fb69adb66ea591ed1343c2da821b09d3 (diff)
downloadsocket_wrapper-c49a62956df63d8e2110de3a91bd69981a05a789.tar.gz
socket_wrapper-c49a62956df63d8e2110de3a91bd69981a05a789.tar.xz
socket_wrapper-c49a62956df63d8e2110de3a91bd69981a05a789.zip
torture: Wait longer for echo_srv startup
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/torture.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/torture.c b/tests/torture.c
index 0579779..e55ebcf 100644
--- a/tests/torture.c
+++ b/tests/torture.c
@@ -183,12 +183,12 @@ static void torture_setup_echo_srv_ip(void **state,
struct stat sb;
count++;
- if (count > 100) {
+ if (count > 20) {
break;
}
rc = stat(s->srv_pidfile, &sb);
- usleep(5000);
+ usleep(50000L); /* 0.05s * 20 */
} while (rc != 0);
assert_int_equal(rc, 0);