mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 22:19:24 -05:00
Add unit test
This commit is contained in:
parent
9952d18e4d
commit
850238b4ef
@ -178,6 +178,22 @@ class StreamChangeCacheTests(unittest.TestCase):
|
||||
),
|
||||
)
|
||||
|
||||
# Query a subset of the entries mid-way through the stream. We should
|
||||
# only get back the subset.
|
||||
self.assertEqual(
|
||||
cache.get_entities_changed(
|
||||
[
|
||||
"bar@baz.net",
|
||||
],
|
||||
stream_pos=2,
|
||||
),
|
||||
set(
|
||||
[
|
||||
"bar@baz.net",
|
||||
]
|
||||
),
|
||||
)
|
||||
|
||||
def test_max_pos(self):
|
||||
"""
|
||||
StreamChangeCache.get_max_pos_of_last_change will return the most
|
||||
|
Loading…
Reference in New Issue
Block a user