summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2022-05-17 10:34:27 +0100
committerGitHub <noreply@github.com>2022-05-17 10:34:27 +0100
commitfcf951d5dc7ca8c4cb18aa9c1f5ccb005df3610a (patch)
tree261694bc915a44abc55dc062ffb4ba5eb959f9a7 /tests/handlers
parentTidy up and type-hint the database engine modules (#12734) (diff)
downloadsynapse-fcf951d5dc7ca8c4cb18aa9c1f5ccb005df3610a.tar.xz
Track in memory events using weakrefs (#10533)
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_sync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/handlers/test_sync.py b/tests/handlers/test_sync.py
index 865b8b7e47..db3302a4c7 100644
--- a/tests/handlers/test_sync.py
+++ b/tests/handlers/test_sync.py
@@ -160,6 +160,7 @@ class SyncTestCase(tests.unittest.HomeserverTestCase):
         # Blow away caches (supported room versions can only change due to a restart).
         self.store.get_rooms_for_user_with_stream_ordering.invalidate_all()
         self.store._get_event_cache.clear()
+        self.store._event_ref.clear()
 
         # The rooms should be excluded from the sync response.
         # Get a new request key.