1
0
mirror of https://github.com/labstack/echo.git synced 2025-11-23 22:24:54 +02:00

Update test to expect improved Response.Flush error message

The test TestResponse_FlushPanics was expecting the old generic error
message but should now expect the improved message that includes the
specific ResponseWriter type information.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vishal Rana
2025-09-15 17:54:49 -07:00
parent a92f4209c6
commit 61da50fefc

View File

@@ -80,7 +80,7 @@ func TestResponse_FlushPanics(t *testing.T) {
res := &Response{echo: e, Writer: rw}
// we test that we behave as before unwrapping flushers - flushing writer that does not support it causes panic
assert.PanicsWithError(t, "response writer flushing is not supported", func() {
assert.PanicsWithError(t, "echo: response writer *echo.testResponseWriter does not support flushing (http.Flusher interface)", func() {
res.Flush()
})
}