diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-08-29 17:39:33 +0100 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2014-08-29 17:39:33 +0100 |
commit | 6dd50da54ea944610eb3836621c45a2d6b2a532b (patch) | |
tree | 9ba22386eb6b5bd82d16240095d2913424d9e4ca /tests/rest | |
parent | Avoid hardcoding names of individual stream token keys in its own implementat... (diff) | |
download | synapse-6dd50da54ea944610eb3836621c45a2d6b2a532b.tar.xz |
Define a new event stream data source for typing notifications (currently null)
Diffstat (limited to 'tests/rest')
-rw-r--r-- | tests/rest/test_presence.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/rest/test_presence.py b/tests/rest/test_presence.py index 0f5fc21432..ab0d580c7c 100644 --- a/tests/rest/test_presence.py +++ b/tests/rest/test_presence.py @@ -295,7 +295,9 @@ class PresenceEventStreamTestCase(unittest.TestCase): # all be ours # I'll already get my own presence state change - self.assertEquals({"start": "0_1", "end": "0_1", "chunk": []}, response) + self.assertEquals({"start": "0_1_0", "end": "0_1_0", "chunk": []}, + response + ) self.mock_datastore.set_presence_state.return_value = defer.succeed( {"state": ONLINE}) @@ -306,10 +308,10 @@ class PresenceEventStreamTestCase(unittest.TestCase): state={"state": ONLINE}) (code, response) = yield self.mock_resource.trigger("GET", - "/events?from=0_1&timeout=0", None) + "/events?from=0_1_0&timeout=0", None) self.assertEquals(200, code) - self.assertEquals({"start": "0_1", "end": "0_2", "chunk": [ + self.assertEquals({"start": "0_1_0", "end": "0_2_0", "chunk": [ {"type": "m.presence", "content": { "user_id": "@banana:test", |