fix: check error return value in test

This commit is contained in:
mehrdadbn9 2026-02-12 23:23:17 +03:30
parent 41a288341f
commit efbf0aefa4

View File

@ -1122,7 +1122,7 @@ func TestServeErrorWritten(t *testing.T) {
router := New() router := New()
router.Use(func(c *Context) { router.Use(func(c *Context) {
c.Writer.WriteHeader(http.StatusNotFound) c.Writer.WriteHeader(http.StatusNotFound)
c.Writer.Write([]byte("custom error")) _, _ = c.Writer.Write([]byte("custom error"))
c.Next() c.Next()
}) })
router.NoRoute(func(c *Context) { router.NoRoute(func(c *Context) {