Skip to content

Commit 043ae66

Browse files
committed
Fix tests
1 parent 002dbda commit 043ae66

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

tests/rest/client/test_sync.py

+2-14
Original file line numberDiff line numberDiff line change
@@ -3567,21 +3567,9 @@ def test_rooms_required_state_incremental_sync(self) -> None:
35673567
)
35683568
self.assertEqual(channel.code, 200, channel.json_body)
35693569

3570-
state_map = self.get_success(
3571-
self.storage_controllers.state.get_current_state(room_id1)
3572-
)
3573-
3574-
# The returned state doesn't change from initial to incremental sync. In the
3575-
# future, we will only return updates but only if we've sent the room down the
3570+
# We only return updates but only if we've sent the room down the
35763571
# connection before.
3577-
self._assertRequiredStateIncludes(
3578-
channel.json_body["rooms"][room_id1]["required_state"],
3579-
{
3580-
state_map[(EventTypes.Create, "")],
3581-
state_map[(EventTypes.RoomHistoryVisibility, "")],
3582-
},
3583-
exact=True,
3584-
)
3572+
self.assertIsNone(channel.json_body["rooms"][room_id1].get("required_state"))
35853573
self.assertIsNone(channel.json_body["rooms"][room_id1].get("invite_state"))
35863574

35873575
def test_rooms_required_state_wildcard(self) -> None:

0 commit comments

Comments
 (0)