1
0

Add test description

This commit is contained in:
Eric Eastwood
2022-09-22 21:51:51 -05:00
parent 0cdc7bf432
commit 5b9b645400

View File

@@ -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,