summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-06-03 16:06:39 +0100
committerErik Johnston <erik@matrix.org>2015-06-03 16:44:24 +0100
commit55bf90b9e458c6adbbd0e82403f9da06da95a812 (patch)
treed717ebff3d547e2341483b13730b681fe980686d /tests
parentLog where a request came from in federation (diff)
downloadsynapse-55bf90b9e458c6adbbd0e82403f9da06da95a812.tar.xz
Don't needlessly compute prev_state
Diffstat (limited to 'tests')
-rw-r--r--tests/handlers/test_room.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/handlers/test_room.py b/tests/handlers/test_room.py
index a2d7635995..2a7553f982 100644
--- a/tests/handlers/test_room.py
+++ b/tests/handlers/test_room.py
@@ -42,6 +42,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
                 "get_room",
                 "store_room",
                 "get_latest_events_in_room",
+                "add_event_hashes",
             ]),
             resource_for_federation=NonCallableMock(),
             http_client=NonCallableMock(spec_set=[]),
@@ -88,6 +89,7 @@ class RoomMemberHandlerTestCase(unittest.TestCase):
         self.ratelimiter.send_message.return_value = (True, 0)
 
         self.datastore.persist_event.return_value = (1,1)
+        self.datastore.add_event_hashes.return_value = []
 
     @defer.inlineCallbacks
     def test_invite(self):