THRIFT-3713 lib/d/test/thrift_test_runner.sh is flaky on Jenkins

Client: Test (D)
Patch: Nobuaki Sukegawa

This closes #925
This commit is contained in:
Nobuaki Sukegawa 2016-03-05 16:07:37 +09:00
parent 6ec6860801
commit 2cc4764d0e

View File

@ -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