summaryrefslogtreecommitdiff
path: root/tests/integration/psync2-master-restart.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/psync2-master-restart.tcl')
-rw-r--r--tests/integration/psync2-master-restart.tcl7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/integration/psync2-master-restart.tcl b/tests/integration/psync2-master-restart.tcl
index c0c8f471f..03470bf81 100644
--- a/tests/integration/psync2-master-restart.tcl
+++ b/tests/integration/psync2-master-restart.tcl
@@ -11,6 +11,13 @@ start_server {} {
set sub_replica [srv -2 client]
+ # Because we will test partial resync later, we don’t want a timeout to cause
+ # the master-replica disconnect, then the extra reconnections will break the
+ # sync_partial_ok stat test
+ $master config set repl-timeout 3600
+ $replica config set repl-timeout 3600
+ $sub_replica config set repl-timeout 3600
+
# Build replication chain
$replica replicaof $master_host $master_port
$sub_replica replicaof $replica_host $replica_port