Skip to content

Commit 65f2d4a

Browse files
committed
removing deprecated http closenotifier function
1 parent bb0d32f commit 65f2d4a

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/transport/handler_server_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ func (s) TestHandlerTransport_NewServerHandlerTransport(t *testing.T) {
9393
// Return w without its Flush method
9494
type onlyCloseNotifier interface {
9595
http.ResponseWriter
96-
http.CloseNotifier
9796
}
9897
return struct{ onlyCloseNotifier }{w.(onlyCloseNotifier)}
9998
},
@@ -196,7 +195,6 @@ func (s) TestHandlerTransport_NewServerHandlerTransport(t *testing.T) {
196195
rrec := httptest.NewRecorder()
197196
rw := http.ResponseWriter(testHandlerResponseWriter{
198197
ResponseRecorder: rrec,
199-
closeNotify: make(chan bool, 1),
200198
})
201199

202200
if tt.modrw != nil {
@@ -227,16 +225,13 @@ func (s) TestHandlerTransport_NewServerHandlerTransport(t *testing.T) {
227225

228226
type testHandlerResponseWriter struct {
229227
*httptest.ResponseRecorder
230-
closeNotify chan bool
231228
}
232229

233-
func (w testHandlerResponseWriter) CloseNotify() <-chan bool { return w.closeNotify }
234230
func (w testHandlerResponseWriter) Flush() {}
235231

236232
func newTestHandlerResponseWriter() http.ResponseWriter {
237233
return testHandlerResponseWriter{
238234
ResponseRecorder: httptest.NewRecorder(),
239-
closeNotify: make(chan bool, 1),
240235
}
241236
}
242237

0 commit comments

Comments
 (0)