diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl index 319462695..e23edad9d 100644 --- a/tests/integration/replication.tcl +++ b/tests/integration/replication.tcl @@ -31,6 +31,14 @@ start_server {tags {"repl network external:skip"}} { } } + test {Slave enters wait_bgsave} { + wait_for_condition 50 1000 { + [string match *state=wait_bgsave* [$master info replication]] + } else { + fail "Replica does not enter wait_bgsave state" + } + } + # 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.