fix: check error return value in test

This commit is contained in:
mehrdadbn9 2026-02-12 23:23:17 +03:30
parent 5c0397dfff
commit bcc32853c4

View File

@ -1090,7 +1090,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) {