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

Commit

Permalink
tests: address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
csuzhangxc committed Oct 17, 2019
1 parent abd37fe commit e13abaf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/start_task/conf/dm-master.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
[[deploy]]
source-id = "mysql-replica-01"
dm-worker = "127.0.0.1:8262"

[[deploy]]
source-id = "mysql-not-exist"
dm-worker = "127.0.0.1:8888"
5 changes: 5 additions & 0 deletions tests/start_task/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ function run() {
run_dm_master $WORK_DIR/master $MASTER_PORT $cur/conf/dm-master.toml
check_rpc_alive $cur/../bin/check_master_online 127.0.0.1:$MASTER_PORT

echo "check un-accessible DM-worker exists"
run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
"query-status" \
"transport: Error while dialing dial tcp 127.0.0.1:8888: connect: connection refused" 1

echo "start task and will failed"
task_conf="$cur/conf/dm-task.yaml"
run_dm_ctl $WORK_DIR "127.0.0.1:$MASTER_PORT" \
Expand Down

0 comments on commit e13abaf

Please sign in to comment.