summary refs log tree commit diff
path: root/tests/handlers
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2022-03-02 17:52:39 +0000
committerBrendan Abolivier <babolivier@matrix.org>2022-03-02 17:52:39 +0000
commit571d3bf002e9b54a03e940a86232f025d0f27b32 (patch)
tree4254a149cd2bbe2ad2b1c4c7cffb1c357ef727da /tests/handlers
parentChangelog (diff)
parentRemove unused mocks from `test_typing` (#12136) (diff)
downloadsynapse-571d3bf002e9b54a03e940a86232f025d0f27b32.tar.xz
Merge branch 'develop' of github.com:matrix-org/synapse into babolivier/sign_json_module
Diffstat (limited to 'tests/handlers')
-rw-r--r--tests/handlers/test_room_summary.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/handlers/test_room_summary.py b/tests/handlers/test_room_summary.py
index b33ff94a39..cff07a8973 100644
--- a/tests/handlers/test_room_summary.py
+++ b/tests/handlers/test_room_summary.py
@@ -658,7 +658,7 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
 
     def test_unknown_room_version(self):
         """
-        If an room with an unknown room version is encountered it should not cause
+        If a room with an unknown room version is encountered it should not cause
         the entire summary to skip.
         """
         # Poke the database and update the room version to an unknown one.
@@ -670,6 +670,9 @@ class SpaceSummaryTestCase(unittest.HomeserverTestCase):
                 desc="updated-room-version",
             )
         )
+        # Invalidate method so that it returns the currently updated version
+        # instead of the cached version.
+        self.hs.get_datastores().main.get_room_version_id.invalidate((self.room,))
 
         # The result should have only the space, along with a link from space -> room.
         expected = [(self.space, [self.room])]