summary refs log tree commit diff
path: root/tests/rest
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2024-07-17 13:02:31 +0100
committerErik Johnston <erik@matrix.org>2024-07-17 13:59:35 +0100
commite2c47bf4e82f32b1394a204dc1b3cc33d9ca8212 (patch)
tree708d763da448542b3242150b11647614661d2221 /tests/rest
parentHandle state deltas in non-initial rooms (diff)
downloadsynapse-e2c47bf4e82f32b1394a204dc1b3cc33d9ca8212.tar.xz
Fix tests
Diffstat (limited to 'tests/rest')
-rw-r--r--tests/rest/client/test_sync.py16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/rest/client/test_sync.py b/tests/rest/client/test_sync.py
index 60f26e2beb..b8d2a0a2d0 100644
--- a/tests/rest/client/test_sync.py
+++ b/tests/rest/client/test_sync.py
@@ -3567,21 +3567,9 @@ class SlidingSyncTestCase(unittest.HomeserverTestCase):
         )
         self.assertEqual(channel.code, 200, channel.json_body)
 
-        state_map = self.get_success(
-            self.storage_controllers.state.get_current_state(room_id1)
-        )
-
-        # The returned state doesn't change from initial to incremental sync. In the
-        # future, we will only return updates but only if we've sent the room down the
+        # We only return updates but only if we've sent the room down the
         # connection before.
-        self._assertRequiredStateIncludes(
-            channel.json_body["rooms"][room_id1]["required_state"],
-            {
-                state_map[(EventTypes.Create, "")],
-                state_map[(EventTypes.RoomHistoryVisibility, "")],
-            },
-            exact=True,
-        )
+        self.assertIsNone(channel.json_body["rooms"][room_id1].get("required_state"))
         self.assertIsNone(channel.json_body["rooms"][room_id1].get("invite_state"))
 
     def test_rooms_required_state_wildcard(self) -> None: