From 41ec924799d20a4427878902c68fbff9ce197305 Mon Sep 17 00:00:00 2001 From: lance6716 Date: Tue, 2 Feb 2021 14:40:25 +0800 Subject: [PATCH] fix CI --- dm/worker/config.go | 3 +-- tests/incremental_mode/run.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dm/worker/config.go b/dm/worker/config.go index 1475e135aa..4d65ef7a12 100644 --- a/dm/worker/config.go +++ b/dm/worker/config.go @@ -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) }) } diff --git a/tests/incremental_mode/run.sh b/tests/incremental_mode/run.sh index 39253d410a..07a25a5618 100755 --- a/tests/incremental_mode/run.sh +++ b/tests/incremental_mode/run.sh @@ -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