test: remove http.CloseNotifier assertions from response_writer_test

This commit is contained in:
Zakir Jiwani 2026-03-17 04:16:08 +00:00
parent 26a190b5d1
commit 250c29cf43

View File

@ -17,7 +17,6 @@ import (
// TODO
// func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
// func (w *responseWriter) CloseNotify() <-chan bool {
// func (w *responseWriter) Flush() {
var (
@ -26,7 +25,6 @@ var (
_ http.ResponseWriter = ResponseWriter(&responseWriter{})
_ http.Hijacker = ResponseWriter(&responseWriter{})
_ http.Flusher = ResponseWriter(&responseWriter{})
_ http.CloseNotifier = ResponseWriter(&responseWriter{})
)
func init() {
@ -119,10 +117,6 @@ func TestResponseWriterHijack(t *testing.T) {
})
assert.True(t, w.Written())
assert.Panics(t, func() {
w.CloseNotify()
})
w.Flush()
}