Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
Signed-off-by: lance6716 <lance6716@gmail.com>
  • Loading branch information
lance6716 committed Aug 4, 2022
1 parent ea1f18d commit 2ea67ba
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions engine/test/integration_tests/dm_full_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function run() {
# prepare data

run_sql 'DROP DATABASE IF EXISTS dm_full_mode'
run_sql 'CREATE DATABASE dm_full_mode;'
run_sql 'CREATE DATABASE dm_full_mode;'
for i in $(seq $TABLE_NUM); do
run_sql "CREATE TABLE dm_full_mode.t$i(i TINYINT, j INT UNIQUE KEY);"
for j in $(seq 2); do
Expand All @@ -27,20 +27,20 @@ function run() {
run_sql "INSERT INTO dm_full_mode.t$i VALUES (9, 90009);"
done

# create job
# create job

create_job_json=`jq -Rs '{ job_type: 3, tenant_id: "dm_full_mode", project_id: "dm_full_mode", job_config: . }' $CUR_DIR/conf/job.yaml`
create_job_json=$(jq -Rs '{ job_type: 3, tenant_id: "dm_full_mode", project_id: "dm_full_mode", job_config: . }' $CUR_DIR/conf/job.yaml)
echo "create_job_json: $create_job_json"
job_id=`curl -X POST -H "Content-Type: application/json" -d "$create_job_json" http://127.0.0.1:10245/api/v1/jobs`
echo "job_id: $job_id"
job_id=$(curl -X POST -H "Content-Type: application/json" -d "$create_job_json" http://127.0.0.1:10245/api/v1/jobs)
echo "job_id: $job_id"

# wait for job finished
# wait for job finished

# remove quotes
job_id=${job_id:1:-1}
exec_with_retry --count 200 "curl \"http://127.0.0.1:10245/api/v1/jobs/$job_id/status\" | jq -e '.TaskStatus.\"mysql-01\".Status.Stage == 4'"
# remove quotes
job_id=${job_id:1:-1}
exec_with_retry --count 200 "curl \"http://127.0.0.1:10245/api/v1/jobs/$job_id/status\" | jq -e '.TaskStatus.\"mysql-01\".Status.Stage == 4'"

# check data
# check data

check_sync_diff $WORK_DIR $CUR_DIR/conf/diff_config.toml 1
}
Expand Down

0 comments on commit 2ea67ba

Please sign in to comment.