summary refs log tree commit diff
path: root/tests/storage/test_stream.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-04-06 05:40:28 -0500
committerGitHub <noreply@github.com>2022-04-06 11:40:28 +0100
commit793d03e2c5c8e688380b8070d53a7e500b7734af (patch)
treed417032e5e8df81946bd1a9a453965e5ffa66d5e /tests/storage/test_stream.py
parentAdd missing dependency on importlib_metadata (#12384) (diff)
downloadsynapse-793d03e2c5c8e688380b8070d53a7e500b7734af.tar.xz
Generate historic pagination token for `/messages` when no `?from` token provided (#12370)
Diffstat (limited to 'tests/storage/test_stream.py')
-rw-r--r--tests/storage/test_stream.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/storage/test_stream.py b/tests/storage/test_stream.py
index 52e41cdab4..78663a53fe 100644
--- a/tests/storage/test_stream.py
+++ b/tests/storage/test_stream.py
@@ -110,7 +110,9 @@ class PaginationTestCase(HomeserverTestCase):
     def _filter_messages(self, filter: JsonDict) -> List[EventBase]:
         """Make a request to /messages with a filter, returns the chunk of events."""
 
-        from_token = self.hs.get_event_sources().get_current_token_for_pagination()
+        from_token = self.get_success(
+            self.hs.get_event_sources().get_current_token_for_pagination(self.room_id)
+        )
 
         events, next_key = self.get_success(
             self.hs.get_datastores().main.paginate_room_events(