summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2014-11-19 17:30:35 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2014-11-19 17:31:46 +0000
commit03dc63f6c86f82743b53adadf7d442d6b478a1bf (patch)
treeb94e6c1f7d1e309357e52dcdcb35dff9720a037a /tests/handlers
parentFix backfill request (diff)
downloadsynapse-03dc63f6c86f82743b53adadf7d442d6b478a1bf.tar.xz
Initialise UserPresenceCache instances to always contain a 'presence' key
Diffstat (limited to '')
-rw-r--r--tests/handlers/test_presence.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/handlers/test_presence.py b/tests/handlers/test_presence.py
index cdaf93429b..fe69ce47eb 100644
--- a/tests/handlers/test_presence.py
+++ b/tests/handlers/test_presence.py
@@ -1200,7 +1200,10 @@ class PresencePollingTestCase(unittest.TestCase):
                 path=ANY,
                 data=_expect_edu("remote", "m.presence",
                     content={
-                        "push": [ {"user_id": "@clementine:test" }],
+                        "push": [ {
+                            "user_id": "@clementine:test",
+                            "presence": OFFLINE,
+                        }],
                     },
                 ),
                 json_data_callback=ANY,
@@ -1229,7 +1232,10 @@ class PresencePollingTestCase(unittest.TestCase):
                 path=ANY,
                 data=_expect_edu("remote", "m.presence",
                     content={
-                        "push": [ {"user_id": "@fig:test" }],
+                        "push": [ {
+                            "user_id": "@fig:test",
+                            "presence": OFFLINE,
+                        }],
                     },
                 ),
                 json_data_callback=ANY,