Skip to content

Commit fcb0790

Browse files
author
Mohammad Alian
committed
fix message
1 parent 4b85e41 commit fcb0790

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

echo_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,10 +1152,7 @@ func TestDefaultHTTPErrorHandler(t *testing.T) {
11521152
// internal error should be reflected in the message
11531153
c, b = request(http.MethodGet, "/internal-error", e)
11541154
assert.Equal(t, http.StatusBadRequest, c)
1155-
assert.Equal(t, `{
1156-
"error": "code=400, message=Bad Request, internal=internal error message body",
1157-
"message": "Bad Request"
1158-
}`+"\n", b)
1155+
assert.Equal(t, "{\n \"error\": \"code=400, message=Bad Request, internal=internal error message body\",\n \"message\": \"Bad Request\"\n}\n", b)
11591156

11601157
e.Debug = false
11611158
// With Debug=false the error response is shortened

0 commit comments

Comments
 (0)