summary refs log tree commit diff
path: root/tests/replication/_base.py
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2023-03-30 19:41:14 +0200
committerGitHub <noreply@github.com>2023-03-30 19:41:14 +0200
commit6f68e32bfbe439435410e81ac70fdca10f28fbf7 (patch)
tree6871ba0e2d83b6057dbadec5bd2ad523e746f369 /tests/replication/_base.py
parentSpeed up SQLite unit test CI (#15334) (diff)
downloadsynapse-6f68e32bfbe439435410e81ac70fdca10f28fbf7.tar.xz
to_device updates could be dropped when consuming the replication stream (#15349)
Co-authored-by: reivilibre <oliverw@matrix.org>
Diffstat (limited to 'tests/replication/_base.py')
-rw-r--r--tests/replication/_base.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/replication/_base.py b/tests/replication/_base.py
index 46a8e2013e..0f1a8a145f 100644
--- a/tests/replication/_base.py
+++ b/tests/replication/_base.py
@@ -54,6 +54,10 @@ class BaseStreamTestCase(unittest.HomeserverTestCase):
     if not hiredis:
         skip = "Requires hiredis"
 
+    if not USE_POSTGRES_FOR_TESTS:
+        # Redis replication only takes place on Postgres
+        skip = "Requires Postgres"
+
     def prepare(self, reactor: MemoryReactor, clock: Clock, hs: HomeServer) -> None:
         # build a replication server
         server_factory = ReplicationStreamProtocolFactory(hs)