From 2cc4764d0e4851b9024c53353235abe586a9835a Mon Sep 17 00:00:00 2001 From: Nobuaki Sukegawa Date: Sat, 5 Mar 2016 16:07:37 +0900 Subject: [PATCH] THRIFT-3713 lib/d/test/thrift_test_runner.sh is flaky on Jenkins Client: Test (D) Patch: Nobuaki Sukegawa This closes #925 --- lib/d/test/thrift_test_runner.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/d/test/thrift_test_runner.sh b/lib/d/test/thrift_test_runner.sh index 27479c99a..51bfe9999 100755 --- a/lib/d/test/thrift_test_runner.sh +++ b/lib/d/test/thrift_test_runner.sh @@ -51,7 +51,11 @@ for protocol in $protocols; do # Give the server some time to get up and check if it runs (yes, this # is a huge kludge, should add a connect timeout to test client). client_rc=-1 - sleep 0.01 + if [ "$server" = "taskpool" ]; then + sleep 0.5 + else + sleep 0.02 + fi kill -0 $server_pid 2>/dev/null if [ $? -eq 0 ]; then ${CUR}/thrift_test_client $args --numTests=10 > /dev/null