mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-11 12:31:58 +01:00
Fix tests
This commit is contained in:
parent
62352c3a1b
commit
9006e125af
1 changed files with 2 additions and 2 deletions
|
@ -138,10 +138,10 @@ class TypingNotificationsTestCase(unittest.HomeserverTestCase):
|
||||||
|
|
||||||
self.datastore.get_joined_hosts_for_room = get_joined_hosts_for_room
|
self.datastore.get_joined_hosts_for_room = get_joined_hosts_for_room
|
||||||
|
|
||||||
def get_current_users_in_room(room_id):
|
def get_users_in_room(room_id):
|
||||||
return defer.succeed({str(u) for u in self.room_members})
|
return defer.succeed({str(u) for u in self.room_members})
|
||||||
|
|
||||||
hs.get_state_handler().get_current_users_in_room = get_current_users_in_room
|
self.datastore.get_users_in_room = get_users_in_room
|
||||||
|
|
||||||
self.datastore.get_user_directory_stream_pos.return_value = (
|
self.datastore.get_user_directory_stream_pos.return_value = (
|
||||||
# we deliberately return a non-None stream pos to avoid doing an initial_spam
|
# we deliberately return a non-None stream pos to avoid doing an initial_spam
|
||||||
|
|
Loading…
Reference in a new issue