func (s *Server) MustMakeRoom(t *testing.T, roomVer gomatrixserverlib.RoomVersion, events []b.Event) *ServerRoom {
	roomID := fmt.Sprintf("!%d:%s", len(s.rooms), s.ServerName)
	room := newRoom(roomVer, roomID)

	// sign all these events
	for _, ev := range events {
		signedEvent := s.MustCreateEvent(t, room, ev)
		room.AddEvent(signedEvent)
	}
	s.rooms[roomID] = room
	return room
}
// MustMakeRoom will add a room to this server so it is accessible to other servers when prompted via federation.
// The `events` will be added to this room. Returns the created room.
MustMakeRoom will add a room to this server so it is accessible to other servers when prompted via federation.
The `events` will be added to this room. Returns the created room.
// MustMakeRoom will add a room to this server so it is accessible to other servers when prompted via federation . // The ` events ` will be added to this room . Returns the created room .
func (s *Server) MustMakeRoom(t *testing.T, roomVer gomatrixserverlib.RoomVersion, events []b.Event) *ServerRoom {
	roomID := fmt.Sprintf("!%d:%s", len(s.rooms), s.ServerName)
	room := newRoom(roomVer, roomID)
	for _, ev := range events {
		signedEvent := s.MustCreateEvent(t, room, ev)
		room.AddEvent(signedEvent)
	}
	s.rooms[roomID] = room
	return room
}
func ( s * Server ) MustMakeRoom ( t * testing . T , roomVer gomatrixserverlib . RoomVersion , events [ ] b . Event ) * ServerRoom { roomID := fmt . Sprintf ( " " , len ( s . rooms ) , s . ServerName ) room := newRoom ( roomVer , roomID ) for _ , ev := range events { signedEvent := s . MustCreateEvent ( t , room , ev ) room . AddEvent ( signedEvent ) } s . rooms [ roomID ] = room return room }
MustMakeRoom will add a room to this server so it is accessible to other servers when prompted via federation.
MustMakeRoom will add a room to this server so it is accessible to other servers when prompted via federation .
// sign all these events