diff --git a/clientapi/routing/server_notices_test.go b/clientapi/routing/server_notices_test.go index e74eab72a..2fac072cd 100644 --- a/clientapi/routing/server_notices_test.go +++ b/clientapi/routing/server_notices_test.go @@ -36,6 +36,12 @@ func Test_sendServerNoticeRequest_validate(t *testing.T) { name: "msgtype empty", fields: fields{ UserID: "@alice:localhost", + Content: struct { + MsgType string `json:"msgtype,omitempty"` + Body string `json:"body,omitempty"` + }{ + Body: "Hello world!", + }, }, }, {