summary refs log tree commit diff
path: root/tests/util
diff options
context:
space:
mode:
authorErik Johnston <erikj@element.io>2024-07-23 14:03:14 +0100
committerGitHub <noreply@github.com>2024-07-23 14:03:14 +0100
commitd225b6b3ebea419bdf0e6c0f1476544053f2dcbf (patch)
treec082e84c0e99375152093cd23dde5bacf684d248 /tests/util
parentReduce volume of 'Waiting for current token' logs, which were introduced in v... (diff)
downloadsynapse-d225b6b3ebea419bdf0e6c0f1476544053f2dcbf.tar.xz
Speed up SS room sorting (#17468)
We do this by bulk fetching the latest stream ordering.

---------

Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Diffstat (limited to 'tests/util')
-rw-r--r--tests/util/test_stream_change_cache.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/util/test_stream_change_cache.py b/tests/util/test_stream_change_cache.py
index 5d38718a50..af1199ef8a 100644
--- a/tests/util/test_stream_change_cache.py
+++ b/tests/util/test_stream_change_cache.py
@@ -249,5 +249,5 @@ class StreamChangeCacheTests(unittest.HomeserverTestCase):
         self.assertEqual(cache.get_max_pos_of_last_change("bar@baz.net"), 3)
         self.assertEqual(cache.get_max_pos_of_last_change("user@elsewhere.org"), 4)
 
-        # Unknown entities will return the stream start position.
-        self.assertEqual(cache.get_max_pos_of_last_change("not@here.website"), 1)
+        # Unknown entities will return None
+        self.assertEqual(cache.get_max_pos_of_last_change("not@here.website"), None)