From 7eb65f8aab0cf9539985f8790f2578cd862dbad6 Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Wed, 16 Jun 2021 14:19:14 -0400 Subject: [PATCH] Update for changes to MSC. --- tests/msc3083_test.go | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/msc3083_test.go b/tests/msc3083_test.go index 2e922763..a979ac3a 100644 --- a/tests/msc3083_test.go +++ b/tests/msc3083_test.go @@ -58,8 +58,9 @@ func setupRestrictedRoom(t *testing.T, deployment *docker.Deployment) (*client.C "join_rule": "restricted", "allow": []map[string]interface{}{ { - "space": &space, - "via": []string{"hs1"}, + "type": "m.room_membership", + "room_id": &space, + "via": []string{"hs1"}, }, }, }, @@ -219,8 +220,9 @@ func TestRestrictedRoomsSpacesSummary(t *testing.T) { "join_rule": "restricted", "allow": []map[string]interface{}{ { - "space": &space, - "via": []string{"hs1"}, + "type": "m.room_membership", + "room_id": &space, + "via": []string{"hs1"}, }, }, }, @@ -298,8 +300,9 @@ func TestRestrictedRoomsSpacesSummaryFederation(t *testing.T) { "join_rule": "restricted", "allow": []map[string]interface{}{ { - "space": &space, - "via": []string{"hs1"}, + "type": "m.room_membership", + "room_id": &space, + "via": []string{"hs1"}, }, }, },