summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAmber Brown <hawkowl@atleastfornow.net>2018-07-17 13:44:46 +1000
committerGitHub <noreply@github.com>2018-07-17 13:44:46 +1000
commit3fe0938b76e0888a5147bbade99e120ea0505605 (patch)
tree3e61a930caf3ebd70f2741c28dba963c15e40cc7 /tests
parentMerge pull request #3540 from krombel/enforce_isort (diff)
parentFixup unit test (diff)
downloadsynapse-3fe0938b76e0888a5147bbade99e120ea0505605.tar.xz
Merge pull request #3530 from matrix-org/erikj/stream_cache
Don't return unknown entities in get_entities_changed
Diffstat (limited to 'tests')
-rw-r--r--tests/util/test_stream_change_cache.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/util/test_stream_change_cache.py b/tests/util/test_stream_change_cache.py
index e3897c0d19..fc45baaaa0 100644
--- a/tests/util/test_stream_change_cache.py
+++ b/tests/util/test_stream_change_cache.py
@@ -141,8 +141,8 @@ class StreamChangeCacheTests(unittest.TestCase):
         )
 
         # Query all the entries mid-way through the stream, but include one
-        # that doesn't exist in it. We should get back the one that doesn't
-        # exist, too.
+        # that doesn't exist in it. We shouldn't get back the one that doesn't
+        # exist.
         self.assertEqual(
             cache.get_entities_changed(
                 [
@@ -153,7 +153,7 @@ class StreamChangeCacheTests(unittest.TestCase):
                 ],
                 stream_pos=2,
             ),
-            set(["bar@baz.net", "user@elsewhere.org", "not@here.website"]),
+            set(["bar@baz.net", "user@elsewhere.org"]),
         )
 
         # Query all the entries, but before the first known point. We will get