summary refs log tree commit diff
path: root/tests/replication/test_resource.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-03-02 17:26:20 +0000
committerMark Haines <mark.haines@matrix.org>2016-03-02 17:26:20 +0000
commit2223204ebaf7624f4d640f2c56d3a4eb7ff6d98e (patch)
tree764f70995e5d2cd7968560cd7e8bce19c038d0dd /tests/replication/test_resource.py
parentAdd a stream for push rule updates (diff)
downloadsynapse-2223204ebaf7624f4d640f2c56d3a4eb7ff6d98e.tar.xz
Hook push rules up to the replication API
Diffstat (limited to 'tests/replication/test_resource.py')
-rw-r--r--tests/replication/test_resource.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/replication/test_resource.py b/tests/replication/test_resource.py
index 38daaf87e2..a30d59a865 100644
--- a/tests/replication/test_resource.py
+++ b/tests/replication/test_resource.py
@@ -35,7 +35,8 @@ class ReplicationResourceCase(unittest.TestCase):
                 "send_message",
             ]),
         )
-        self.user = UserID.from_string("@seeing:red")
+        self.user_id = "@seeing:red"
+        self.user = UserID.from_string(self.user_id)
 
         self.hs.get_ratelimiter().send_message.return_value = (True, 0)
 
@@ -101,7 +102,7 @@ class ReplicationResourceCase(unittest.TestCase):
         event_id = yield self.send_text_message(room_id, "Hello, World")
         get = self.get(receipts="-1")
         yield self.hs.get_handlers().receipts_handler.received_client_receipt(
-            room_id, "m.read", self.user.to_string(), event_id
+            room_id, "m.read", self.user_id, event_id
         )
         code, body = yield get
         self.assertEquals(code, 200)
@@ -129,6 +130,7 @@ class ReplicationResourceCase(unittest.TestCase):
     test_timeout_room_account_data = _test_timeout("room_account_data")
     test_timeout_tag_account_data = _test_timeout("tag_account_data")
     test_timeout_backfill = _test_timeout("backfill")
+    test_timeout_push_rules = _test_timeout("push_rules")
 
     @defer.inlineCallbacks
     def send_text_message(self, room_id, message):