summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorAndrew Morgan <andrewm@element.io>2022-10-18 09:55:38 +0100
committerAndrew Morgan <andrewm@element.io>2022-10-18 09:55:38 +0100
commite893697a94ffbb7836cfb1261e0315adb5a85c19 (patch)
tree433d50d3a0f992ec68049b8ce34e2fe9dd5a62f0 /tests
parentAdd debug logs to figure out why an event was filtered (#14095) (diff)
parentRemove test that checked for optimisation (diff)
downloadsynapse-e893697a94ffbb7836cfb1261e0315adb5a85c19.tar.xz
Merge branch 'anoa/have_seen_events_no_cache' into anoa/test_me
Diffstat (limited to 'tests')
-rw-r--r--tests/storage/databases/main/test_events_worker.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/storage/databases/main/test_events_worker.py b/tests/storage/databases/main/test_events_worker.py

index 32a798d74b..5773172ab8 100644 --- a/tests/storage/databases/main/test_events_worker.py +++ b/tests/storage/databases/main/test_events_worker.py
@@ -90,18 +90,6 @@ class HaveSeenEventsTestCase(unittest.HomeserverTestCase): self.assertEqual(res, {self.event_ids[0]}) self.assertEqual(ctx.get_resource_usage().db_txn_count, 0) - def test_query_via_event_cache(self): - # fetch an event into the event cache - self.get_success(self.store.get_event(self.event_ids[0])) - - # looking it up should now cause no db hits - with LoggingContext(name="test") as ctx: - res = self.get_success( - self.store.have_seen_events(self.room_id, [self.event_ids[0]]) - ) - self.assertEqual(res, {self.event_ids[0]}) - 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