summary refs log tree commit diff
path: root/synapse/replication
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-07-25 10:30:36 +0100
committerRichard van der Hoff <richard@matrix.org>2018-07-25 10:30:36 +0100
commitf59be4eb0e4c96d6744b4a479a04991bd53a50a6 (patch)
tree9624d14b6622584e27f9bd3ae84dfaf4dd8b7ab2 /synapse/replication
parentChangelog (diff)
downloadsynapse-f59be4eb0e4c96d6744b4a479a04991bd53a50a6.tar.xz
Fix unit tests
on_notifier_poke no longer runs synchonously, so we have to do a different hack
to make sure that the replication data has been sent. Let's actually listen for
its arrival.
Diffstat (limited to 'synapse/replication')
-rw-r--r--synapse/replication/tcp/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/replication/tcp/client.py b/synapse/replication/tcp/client.py
index e592ab57bf..970e94313e 100644
--- a/synapse/replication/tcp/client.py
+++ b/synapse/replication/tcp/client.py
@@ -192,7 +192,7 @@ class ReplicationClientHandler(object):
         """Returns a deferred that is resolved when we receive a SYNC command
         with given data.
 
-        Used by tests.
+        [Not currently] used by tests.
         """
         return self.awaiting_syncs.setdefault(data, defer.Deferred())