summary refs log tree commit diff
path: root/tests/storage
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2020-01-03 15:31:09 +0000
committerRichard van der Hoff <richard@matrix.org>2020-01-06 13:45:33 +0000
commit5a047816434e2ce2df8b80eb63a49c17dc3085fb (patch)
tree507d8e321ce50c13598c3dccd2123cbb9bf093a3 /tests/storage
parentFix power levels being incorrectly set in old and new rooms after a room upgr... (diff)
downloadsynapse-5a047816434e2ce2df8b80eb63a49c17dc3085fb.tar.xz
rename get_prev_events_for_room to get_prev_events_and_hashes_for_room
... to make way for a new method which just returns the event ids
Diffstat (limited to 'tests/storage')
-rw-r--r--tests/storage/test_event_federation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/storage/test_event_federation.py b/tests/storage/test_event_federation.py
index eadfb90a22..3a68bf3274 100644
--- a/tests/storage/test_event_federation.py
+++ b/tests/storage/test_event_federation.py
@@ -26,7 +26,7 @@ class EventFederationWorkerStoreTestCase(tests.unittest.TestCase):
         self.store = hs.get_datastore()
 
     @defer.inlineCallbacks
-    def test_get_prev_events_for_room(self):
+    def test_get_prev_events_and_hashes_for_room(self):
         room_id = "@ROOM:local"
 
         # add a bunch of events and hashes to act as forward extremities
@@ -64,7 +64,7 @@ class EventFederationWorkerStoreTestCase(tests.unittest.TestCase):
             yield self.store.db.runInteraction("insert", insert_event, i)
 
         # this should get the last five and five others
-        r = yield self.store.get_prev_events_for_room(room_id)
+        r = yield self.store.get_prev_events_and_hashes_for_room(room_id)
         self.assertEqual(10, len(r))
         for i in range(0, 5):
             el = r[i]