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

test: fix integration test which may cause case fail sometimes #2153

Merged
merged 1 commit into from
Sep 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also fix the typo in L36 echo "pattern $pattern already exist"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems not a typo, it should be process with pattern $pattern already exit

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 @@ -400,6 +400,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