Wait test server startup for 5s

This commit is contained in:
proller 2018-06-21 17:54:48 +03:00
parent 30a6c6479b
commit 2d9d723d3c
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ $GDB ${BIN_DIR}clickhouse-server --config-file=$CLICKHOUSE_CONFIG -- \
$INTERNAL_COMPILER_PARAMS \ $INTERNAL_COMPILER_PARAMS \
> $LOG_DIR/stdout 2>&1 & > $LOG_DIR/stdout 2>&1 &
CH_PID=$! CH_PID=$!
sleep 3 sleep ${TEST_SERVER_STARTUP_WAIT:=5}
if [ "$GDB" ]; then if [ "$GDB" ]; then
# Long symbols read # Long symbols read

View File

@ -66,7 +66,7 @@ if [ "${TEST_CONNECT}" ]; then
trap finish EXIT SIGINT SIGQUIT SIGTERM trap finish EXIT SIGINT SIGQUIT SIGTERM
service clickhouse-server start service clickhouse-server start
sleep 3 sleep {TEST_SERVER_STARTUP_WAIT:=5}
# TODO: remove me or make only on error: # TODO: remove me or make only on error:
tail -n100 /var/log/clickhouse-server/*.log /var/log/clickhouse-server/stderr || true tail -n100 /var/log/clickhouse-server/*.log /var/log/clickhouse-server/stderr || true