Fix roomserver testdata

This commit is contained in:
Mark Haines 2017-07-11 18:28:38 +01:00
parent 9138ba1bd1
commit c4adbbfbc6

View file

@ -310,8 +310,8 @@ func main() {
} }
want := []string{ want := []string{
`{ `{"type":"new_room_event","new_room_event":{
"Event":{ "event":{
"auth_events":[[ "auth_events":[[
"$1463671337126266wrSBX:matrix.org",{"sha256":"h/VS07u8KlMwT3Ee8JhpkC7sa1WUs0Srgs+l3iBv6c0"} "$1463671337126266wrSBX:matrix.org",{"sha256":"h/VS07u8KlMwT3Ee8JhpkC7sa1WUs0Srgs+l3iBv6c0"}
]], ]],
@ -340,14 +340,14 @@ func main() {
"state_key":"@richvdh:matrix.org", "state_key":"@richvdh:matrix.org",
"type":"m.room.member" "type":"m.room.member"
}, },
"StateBeforeRemovesEventIDs":["$1463671339126270PnVwC:matrix.org"], "state_before_removes_event_ids":["$1463671339126270PnVwC:matrix.org"],
"StateBeforeAddsEventIDs":null, "state_before_adds_event_ids":null,
"LatestEventIDs":["$1463671339126270PnVwC:matrix.org"], "latest_event_ids":["$1463671339126270PnVwC:matrix.org"],
"AddsStateEventIDs":["$1463671337126266wrSBX:matrix.org", "$1463671339126270PnVwC:matrix.org"], "adds_state_event_ids":["$1463671337126266wrSBX:matrix.org", "$1463671339126270PnVwC:matrix.org"],
"RemovesStateEventIDs":null, "removes_state_event_ids":null,
"LastSentEventID":"", "last_sent_event_id":"",
"SendAsServer":"" "send_as_server":""
}`, }}`,
} }
testRoomserver(input, want, func(q api.RoomserverQueryAPI) { testRoomserver(input, want, func(q api.RoomserverQueryAPI) {