Skip to content

Commit

Permalink
tests: Fix unstable integration tests (#8205) (#8207)
Browse files Browse the repository at this point in the history
close #8206
  • Loading branch information
ti-chi-bot authored Nov 7, 2023
1 parent e2dbf74 commit 769b8a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function wait_env() {

for (( i = 0; i < "${timeout}"; i++ )); do
if [[ -n $(cat ./log/tidb0/tidb.log | grep "server is running MySQL protocol") && \
-n $(cat ./log/tiflash/server.log | grep "Ready for connections") ]]; then
-n $(cat ./log/tiflash/server.log | grep "Start to wait for terminal signal") ]]; then
local failed='false'
break
fi
Expand Down Expand Up @@ -88,4 +88,4 @@ docker-compose -f cluster.yaml -f tiflash-tagged-image.yaml down
rm -rf ./data ./log

[[ "$TIDB_CI_ONLY" -eq 1 ]] && exit
#################################### TIDB-CI ONLY ####################################
#################################### TIDB-CI ONLY ####################################
4 changes: 2 additions & 2 deletions tests/docker/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function wait_env() {

for (( i = 0; i < "${timeout}"; i++ )); do
if [[ -n $(cat ./log/tidb0/tidb.log | grep "server is running MySQL protocol") && \
-n $(cat ./log/tiflash/server.log | grep "Ready for connections") ]]; then
-n $(cat ./log/tiflash/server.log | grep "Start to wait for terminal signal") ]]; then
local failed='false'
break
fi
Expand All @@ -67,7 +67,7 @@ function wait_tiflash_env() {
echo "=> wait for env available"

for (( i = 0; i < "${timeout}"; i++ )); do
if [[ -n $(cat ./log/tiflash/server.log | grep "Ready for connections") ]]; then
if [[ -n $(cat ./log/tiflash/server.log | grep "Start to wait for terminal signal") ]]; then
local failed='false'
break
fi
Expand Down

0 comments on commit 769b8a0

Please sign in to comment.