diff options
author | Patrick Cloke <patrickc@matrix.org> | 2022-03-11 07:27:24 -0500 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2022-03-11 10:35:23 -0500 |
commit | b32bb82bee5cbb57771db8afca5f02fe2bad9888 (patch) | |
tree | cb0f500a73293fcab3065bc5f52c9c13956acd17 | |
parent | Attempt to re-connect better. (diff) | |
download | synapse-b32bb82bee5cbb57771db8afca5f02fe2bad9888.tar.xz |
temp
-rw-r--r-- | tests/replication/slave/storage/test_events.py | 11 |
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 ------") |