summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMark Haines <mjark@negativecurvature.net>2016-06-02 16:28:54 +0100
committerMark Haines <mjark@negativecurvature.net>2016-06-02 16:28:54 +0100
commit56d15a05306896555ded3025f8a808bda04872fa (patch)
treef576d9eb78423f17ad3dcb796d300340d9ebd0a5 /tests
parentFix setting the _clock in SQLBaseStore (diff)
downloadsynapse-56d15a05306896555ded3025f8a808bda04872fa.tar.xz
Store the typing users as user_id strings. (#819)
Rather than storing them as UserID objects.
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_typing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/handlers/test_typing.py b/tests/handlers/test_typing.py
index abb739ae52..ab9899b7d5 100644
--- a/tests/handlers/test_typing.py
+++ b/tests/handlers/test_typing.py
@@ -251,12 +251,12 @@ class TypingNotificationsTestCase(unittest.TestCase):
 
         # Gut-wrenching
         from synapse.handlers.typing import RoomMember
-        member = RoomMember(self.room_id, self.u_apple)
+        member = RoomMember(self.room_id, self.u_apple.to_string())
         self.handler._member_typing_until[member] = 1002000
         self.handler._member_typing_timer[member] = (
             self.clock.call_later(1002, lambda: 0)
         )
-        self.handler._room_typing[self.room_id] = set((self.u_apple,))
+        self.handler._room_typing[self.room_id] = set((self.u_apple.to_string(),))
 
         self.assertEquals(self.event_source.get_current_key(), 0)