summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-09-02 15:38:48 +0100
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-09-03 13:46:52 +0100
commit86d62322366a74f7fcf6f05b1c13f0e3acd3dc8b (patch)
tree018fecfbb4a3c623391493a4a048e0fde65b6595 /tests
parentMake sure to print exceptions properly from notifier failures (diff)
downloadsynapse-86d62322366a74f7fcf6f05b1c13f0e3acd3dc8b.tar.xz
Don't eat federation transmit errors during unit tests; fix remote presence EDU-sending test because of this
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_presence.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/handlers/test_presence.py b/tests/handlers/test_presence.py
index 618fb7f270..4583ff8bc6 100644
--- a/tests/handlers/test_presence.py
+++ b/tests/handlers/test_presence.py
@@ -719,6 +719,22 @@ class PresencePushTestCase(unittest.TestCase):
             ),
             defer.succeed((200, "OK"))
         )
+        put_json.expect_call_and_return(
+            call("remote",
+                path=ANY,  # Can't guarantee which txn ID will be which
+                data=_expect_edu("remote", "m.presence",
+                    content={
+                        "push": [
+                            {"user_id": "@apple:test",
+                             "presence": u"online",
+                             "state": u"online",
+                             "last_active_ago": 0},
+                        ],
+                    }
+                )
+            ),
+            defer.succeed((200, "OK"))
+        )
 
         self.room_members = [self.u_apple, self.u_onion]