Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 61da50f

Browse files
vishrclaude
andcommitted
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>
1 parent a92f420 commit 61da50f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎response_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func TestResponse_FlushPanics(t *testing.T) {
8080
res := &Response{echo: e, Writer: rw}
8181

8282
// we test that we behave as before unwrapping flushers - flushing writer that does not support it causes panic
83-
assert.PanicsWithError(t, "response writer flushing is not supported", func() {
83+
assert.PanicsWithError(t, "echo: response writer *echo.testResponseWriter does not support flushing (http.Flusher interface)", func() {
8484
res.Flush()
8585
})
8686
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /