diff options
author | lukasdenk <63459921+lukasdenk@users.noreply.github.com> | 2022-03-02 11:35:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-02 10:35:34 +0000 |
commit | 8e56a1b73c9819ea4bddbe6a4734966e70b3b92c (patch) | |
tree | ec656b9e0e6afa5c6e7baad4d56dcedcacca1ab4 /tests | |
parent | Detox, part 1 of N (#12119) (diff) | |
download | synapse-8e56a1b73c9819ea4bddbe6a4734966e70b3b92c.tar.xz |
Make get_room_version use cached get_room_version_id. (#11808)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/handlers/test_room_summary.py | 5 |
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])] |