THRIFT-3713 lib/d/test/thrift_test_runner.sh is flaky on Jenkins
Client: Test (D)
Patch: Nobuaki Sukegawa

This closes #925
diff --git a/lib/d/test/thrift_test_runner.sh b/lib/d/test/thrift_test_runner.sh
index 27479c9..51bfe99 100755
--- a/lib/d/test/thrift_test_runner.sh
+++ b/lib/d/test/thrift_test_runner.sh
@@ -51,7 +51,11 @@
         # 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