Skip to content

Commit

Permalink
edit response from string() method
Browse files Browse the repository at this point in the history
  • Loading branch information
invist committed Jun 1, 2018
1 parent 5494465 commit d3f1a84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/mattermost/mattermost_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func TestSend(t *testing.T) {
// Check error
hook.RawQuery = GetQueryValues("action=error", t).Encode()
n.IncomingHookURI = hook.String()
if err := n.Send(); err.Error() != `response: {Unable to parse incoming data Unable to parse incoming data %!s(int=400) OoFaz2ra0Bahsiechu8c}` {
if err := n.Send(); err.Error() != `response: {"id":"Unable to parse incoming data","message":"Unable to parse incoming data","detailed_error":"","status_code":400,"request_id":"OoFaz2ra0Bahsiechu8c"}` {
t.Error(err)
}

Expand Down

0 comments on commit d3f1a84

Please sign in to comment.