diff --git a/gin_test.go b/gin_test.go index c9b7db36..46d3524c 100644 --- a/gin_test.go +++ b/gin_test.go @@ -495,6 +495,7 @@ func TestJSONErrorWrongContentLength(t *testing.T) { // catch c.JSON panic assert.Equal(t, err, http.ErrContentLength) } + c.JSON(http.StatusInternalServerError, "internal error") wg.Done() }() c.Next()