Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

Commit

Permalink
test: fix integration test which may cause case fail sometimes (#2153) (
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Sep 23, 2021
1 parent 41f173e commit c8c9187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/_utils/test_prepare
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function wait_pattern_exit() {
pattern=$1
while true
do
if [ "pgrep -f $pattern" != "0" ]; then
if ! pgrep -f $pattern >/dev/null 2>&1; then
echo "pattern $pattern already exit"
return 0
fi
Expand Down
1 change: 1 addition & 0 deletions tests/all_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ function run() {
"resume-relay -s mysql-replica-01" \
"\"result\": true" 2

sleep 2
# relay should continue pulling from syncer's checkpoint, so only pull the latest binlog
server_uuid=$(tail -n 1 $WORK_DIR/worker1/relay_log/server-uuid.index)
echo "relay logs $(ls $WORK_DIR/worker1/relay_log/$server_uuid)"
Expand Down

0 comments on commit c8c9187

Please sign in to comment.