diff --git a/dm/tests/checkpoint_transaction/run.sh b/dm/tests/checkpoint_transaction/run.sh index 5771945384a..63327a413f9 100755 --- a/dm/tests/checkpoint_transaction/run.sh +++ b/dm/tests/checkpoint_transaction/run.sh @@ -30,8 +30,7 @@ function run() { run_sql_file $cur/data/db1.increment1.sql $MYSQL_HOST1 $MYSQL_PORT1 $MYSQL_PASSWORD1 # wait transaction start - # you can see why sleep in https://github.com/pingcap/dm/pull/1928#issuecomment-895820239 - sleep 2 + check_log_contain_with_retry "receive dml job" $WORK_DIR/worker1/log/dm-worker.log echo "pause task and check status" run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ "pause-task test" \ @@ -57,8 +56,7 @@ function run() { run_sql_file $cur/data/db1.increment2.sql $MYSQL_HOST1 $MYSQL_PORT1 $MYSQL_PASSWORD1 # wait transaction start - # you can see why sleep in https://github.com/pingcap/dm/pull/1928#issuecomment-895820239 - sleep 2 + check_log_contain_with_retry "receive dml job" $WORK_DIR/worker1/log/dm-worker.log echo "stop task" run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \ "stop-task test" \