creationContent -> reqBody

It is not the creation content (i.e. the content of the m.room.create event).
This commit is contained in:
David Robertson 2023-09-07 18:21:52 +01:00
parent 6ad321d86c
commit 956ef54d2d
No known key found for this signature in database
GPG Key ID: 903ECE108A39DEDD

View File

@ -184,9 +184,9 @@ func (c *CSAPI) DownloadContent(t *testing.T, mxcUri string) ([]byte, string) {
}
// CreateRoom creates a room with an optional HTTP request body. Fails the test on error. Returns the room ID.
func (c *CSAPI) CreateRoom(t *testing.T, creationContent interface{}) string {
func (c *CSAPI) CreateRoom(t *testing.T, reqBody map[string]any) string {
t.Helper()
res := c.MustDo(t, "POST", []string{"_matrix", "client", "v3", "createRoom"}, creationContent)
res := c.MustDo(t, "POST", []string{"_matrix", "client", "v3", "createRoom"}, reqBody)
body := ParseJSON(t, res)
return GetJSONFieldStr(t, body, "room_id")
}