summary refs log tree commit diff
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2022-03-11 07:27:24 -0500
committerPatrick Cloke <patrickc@matrix.org>2022-03-11 10:35:23 -0500
commitb32bb82bee5cbb57771db8afca5f02fe2bad9888 (patch)
treecb0f500a73293fcab3065bc5f52c9c13956acd17
parentAttempt to re-connect better. (diff)
downloadsynapse-b32bb82bee5cbb57771db8afca5f02fe2bad9888.tar.xz
temp
-rw-r--r--tests/replication/slave/storage/test_events.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/replication/slave/storage/test_events.py b/tests/replication/slave/storage/test_events.py
index 17dc42fd37..4e9ac3727a 100644
--- a/tests/replication/slave/storage/test_events.py
+++ b/tests/replication/slave/storage/test_events.py
@@ -250,10 +250,13 @@ class SlavedEventStoreTestCase(BaseSlavedStoreTestCase):
         self.replicate()
         self.check("get_rooms_for_user_with_stream_ordering", (USER_ID_2,), set())
 
-        # limit the replication rate
-        repl_transport = self._server_transport
-        assert isinstance(repl_transport, FakeTransport)
-        repl_transport.autoflush = False
+        # limit the replication rate from server -> client.
+        print(len(self._redis_transports))
+        print(self._redis_transports)
+        assert len(self._redis_transports) == 1
+        for _, repl_transport in self._redis_transports:
+            assert isinstance(repl_transport, FakeTransport)
+            repl_transport.autoflush = False
 
         # build the join and message events and persist them in the same batch.
         logger.info("----- build test events ------")