From 0a9b146d3386f94cd19e88a36bff7fd2136f73f5 Mon Sep 17 00:00:00 2001 From: lpxxn Date: Fri, 7 Dec 2018 13:52:12 +0800 Subject: [PATCH] response error info --- gin_test.go | 1 + 1 file changed, 1 insertion(+) 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()