Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions tests/restricted_rooms_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,17 +326,7 @@ func doTestRestrictedRoomsRemoteJoinLocalUser(t *testing.T, roomVersion string,
charlie.MustLeaveRoom(t, room)

// Ensure the events have synced to hs1.
alice.MustSyncUntil(t, client.SyncReq{}, client.SyncTimelineHas(
room,
func(ev gjson.Result) bool {
if ev.Get("type").Str != "m.room.member" || ev.Get("state_key").Str != charlie.UserID {
return false
}
must.Equal(t, ev.Get("content").Get("membership").Str, "leave", "Charlie failed to leave the room")

return true
},
))
alice.MustSyncUntil(t, client.SyncReq{}, client.SyncLeftFrom(charlie.UserID, room))

// Have bob leave and rejoin. This should still work even though hs2 isn't in
// the room anymore!
Expand Down
Loading