From efbf0aefa4b9679ffa071fa8a458a9672b7110b5 Mon Sep 17 00:00:00 2001 From: mehrdadbn9 Date: Thu, 12 Feb 2026 23:23:17 +0330 Subject: [PATCH] fix: check error return value in test --- gin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {