diff options
author | Oran Agra <oran@redislabs.com> | 2022-12-12 18:10:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 18:10:48 +0200 |
commit | cd12cc2f545cea5e50be1748de4d2316841e19b8 (patch) | |
tree | c7b1882dcd26c37481ac9a2fd8510b09f91aee2f /tests/integration | |
parent | ef282bd75f9c0f7ca8db1b2a20bdfa628bd6c225 (diff) | |
download | redis-cd12cc2f545cea5e50be1748de4d2316841e19b8.tar.gz |
solve race in replication test due to ping (#11609)
attach_to_replication_stream already stops pings, but it stops them on
the server we connect to, and in this case it's a replica, and we need
to stop them on the real master.
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/replication.tcl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/integration/replication.tcl b/tests/integration/replication.tcl index e98eb8982..bb06e18ac 100644 --- a/tests/integration/replication.tcl +++ b/tests/integration/replication.tcl @@ -226,6 +226,9 @@ start_server {tags {"repl external:skip"}} { } test {FLUSHDB / FLUSHALL should replicate} { + # we're attaching to a sub-replica, so we need to stop pings on the real master + r -1 config set repl-ping-replica-period 3600 + set repl [attach_to_replication_stream] r -1 set key value |