diff --git a/gin_test.go b/gin_test.go index 14552308..752820b1 100644 --- a/gin_test.go +++ b/gin_test.go @@ -1122,7 +1122,7 @@ func TestServeErrorWritten(t *testing.T) { router := New() router.Use(func(c *Context) { c.Writer.WriteHeader(http.StatusNotFound) - c.Writer.Write([]byte("custom error")) + _, _ = c.Writer.Write([]byte("custom error")) c.Next() }) router.NoRoute(func(c *Context) {