summary refs log tree commit diff
path: root/tests/replication/_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/replication/_base.py')
-rw-r--r--tests/replication/_base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/replication/_base.py b/tests/replication/_base.py

index a5398029ad..d84df7a915 100644 --- a/tests/replication/_base.py +++ b/tests/replication/_base.py
@@ -163,6 +163,7 @@ class BaseStreamTestCase(unittest.HomeserverTestCase): def reconnect(self): self.disconnect() + print("RECONNECTING") # Make a `FakeConnector` to emulate the behavior of `connectTCP. That # creates an `IConnector`, which is responsible for calling the factory @@ -193,6 +194,7 @@ class BaseStreamTestCase(unittest.HomeserverTestCase): self.connect_any_redis_attempts() def disconnect(self): + print("DISCONNECTING") for ( client_to_server_transport, server_to_client_transport, @@ -296,6 +298,11 @@ class BaseStreamTestCase(unittest.HomeserverTestCase): client_protocol = client_factory.buildProtocol(None) server_protocol = self._redis_server.buildProtocol(None) + if client_protocol.__class__.__name__ == "RedisSubscriber": + print(client_protocol, client_protocol.synapse_handler._presence_handler.hs, client_protocol.synapse_outbound_redis_connection) + else: + print(client_protocol, client_protocol.factory.hs) + print() client_to_server_transport = FakeTransport( server_protocol, self.reactor, client_protocol