summaryrefslogtreecommitdiff
path: root/tests/integration/replication.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/replication.tcl')
-rw-r--r--tests/integration/replication.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl
index 175506c17..319462695 100644
--- a/tests/integration/replication.tcl
+++ b/tests/integration/replication.tcl
@@ -20,11 +20,6 @@ start_server {tags {"repl network external:skip"}} {
$master config set repl-diskless-sync yes
$master config set repl-diskless-sync-delay 1000
- # Use a short replication timeout on the slave, so that if there
- # are no bugs the timeout is triggered in a reasonable amount
- # of time.
- $slave config set repl-timeout 5
-
# Start the replication process...
$slave slaveof $master_host $master_port
@@ -36,6 +31,11 @@ start_server {tags {"repl network external:skip"}} {
}
}
+ # Use a short replication timeout on the slave, so that if there
+ # are no bugs the timeout is triggered in a reasonable amount
+ # of time.
+ $slave config set repl-timeout 5
+
# But make the master unable to send
# the periodic newlines to refresh the connection. The slave
# should detect the timeout.