!524 【轻量级 PR】:Make container build pass sanity test

Merge pull request !524 from sandygao/N/A
This commit is contained in:
i-robot 2021-01-06 11:31:29 +08:00 committed by Gitee
commit a3c8fb40e8
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ function test_container {
I=0
# check if hetu instance is running
sleep ${QUERY_PERIOD}
until RESULT=$(docker exec "${CONTAINER_ID}" openlk --execute "SELECT 'success'"); do
until RESULT=$(docker exec "${CONTAINER_ID}" openlk --execute "SELECT 'success'" | tail -1); do
if [[ $((I++)) -ge ${QUERY_RETRIES} ]]; then
echo "Too many retries waiting for Hetu to start."
break