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

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
lance6716 committed Feb 2, 2021
1 parent a6cb5bb commit 41ec924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions dm/worker/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ var (
)

func init() {
failpoint.Inject("defaultKeepAliveTTLs", func(val failpoint.Value) {
failpoint.Inject("defaultKeepAliveTTL", func(val failpoint.Value) {
i := val.(int)
defaultKeepAliveTTL = int64(i)
defaultRelayKeepAliveTTL = int64(i)
})
}

Expand Down
2 changes: 1 addition & 1 deletion tests/incremental_mode/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function run() {
run_sql_file $cur/data/db2.prepare.sql $MYSQL_HOST2 $MYSQL_PORT2 $MYSQL_PASSWORD2
check_contains 'Query OK, 3 rows affected'

export GO_FAILPOINTS="github.com/pingcap/dm/dm/worker/defaultKeepAliveTTLs=return(1)"
export GO_FAILPOINTS="github.com/pingcap/dm/dm/worker/defaultKeepAliveTTL=return(1)"

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
Expand Down

0 comments on commit 41ec924

Please sign in to comment.