mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fuzzer: Try a different way to wait for the server
This commit is contained in:
parent
c4856e326b
commit
4700222a0d
@ -181,7 +181,15 @@ function fuzz
|
||||
-- --path db \
|
||||
--logger.console=0 \
|
||||
--logger.log=server.log 2>&1 | tee -a stderr.log >> server.log 2>&1 &
|
||||
server_pid=$(pidof clickhouse-server)
|
||||
for _ in {1..30}
|
||||
do
|
||||
if clickhouse-client --query "select 1"
|
||||
then
|
||||
break
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
server_pid=$(cat /var/run/clickhouse-server/clickhouse-server.pid)
|
||||
|
||||
kill -0 $server_pid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user