Skip to content
Snippets Groups Projects
Commit d100ac8c authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix test. get_joined_hosts_for_room get's called multiple times

parent 5c4c591c
No related branches found
No related tags found
No related merge requests found
......@@ -140,9 +140,11 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
joined = ["red", "green"]
self.state_handler.handle_new_event.return_value = defer.succeed(True)
self.datastore.get_joined_hosts_for_room.return_value = (
defer.succeed(joined)
)
def get_joined(*args):
return defer.succeed(joined)
self.datastore.get_joined_hosts_for_room.side_effect = get_joined
store_id = "store_id_fooo"
self.datastore.persist_event.return_value = defer.succeed(store_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment