Skip to content

Commit

Permalink
fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammad Alian committed Aug 12, 2021
1 parent 4b85e41 commit fcb0790
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions echo_test.go
Expand Up @@ -1152,10 +1152,7 @@ func TestDefaultHTTPErrorHandler(t *testing.T) {
// internal error should be reflected in the message
c, b = request(http.MethodGet, "/internal-error", e)
assert.Equal(t, http.StatusBadRequest, c)
assert.Equal(t, `{
"error": "code=400, message=Bad Request, internal=internal error message body",
"message": "Bad Request"
}`+"\n", b)
assert.Equal(t, "{\n \"error\": \"code=400, message=Bad Request, internal=internal error message body\",\n \"message\": \"Bad Request\"\n}\n", b)

e.Debug = false
// With Debug=false the error response is shortened
Expand Down

0 comments on commit fcb0790

Please sign in to comment.