summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-09-22 21:51:51 -0500
committerEric Eastwood <erice@element.io>2022-09-22 21:51:51 -0500
commit5b9b645400c9c4fdc4054e625930ffa697a271a2 (patch)
tree9d50bf0e156830a9d1666a1a6a402cb52d83897e
parentFix `@cachedList` on `_have_seen_events_dict` (diff)
downloadsynapse-5b9b645400c9c4fdc4054e625930ffa697a271a2.tar.xz
Add test description
-rw-r--r--tests/storage/databases/main/test_events_worker.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/storage/databases/main/test_events_worker.py b/tests/storage/databases/main/test_events_worker.py
index 158ad1f439..47ec189684 100644
--- a/tests/storage/databases/main/test_events_worker.py
+++ b/tests/storage/databases/main/test_events_worker.py
@@ -103,6 +103,11 @@ class HaveSeenEventsTestCase(unittest.HomeserverTestCase):
             self.assertEqual(ctx.get_resource_usage().db_txn_count, 0)
 
     def test_persisting_event_invalidates_cache(self):
+        """
+        Test to make sure that the `have_seen_event` cache
+        is invalided after we persist an event and returns
+        the updated value.
+        """
         event, event_context = self.get_success(
             create_event(
                 self.hs,