From 4f03f3ff32c983f2e9b030889041ff9d5ffb6aeb Mon Sep 17 00:00:00 2001 From: Mile Druzijanic <153705375+zedGGs@users.noreply.github.com> Date: Thu, 21 Dec 2023 23:54:26 +0100 Subject: [PATCH] removing deprecated http closenotifier function (#6886) --- internal/transport/handler_server_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/transport/handler_server_test.go b/internal/transport/handler_server_test.go index 4d92e9b9c042..acd5e6e33f87 100644 --- a/internal/transport/handler_server_test.go +++ b/internal/transport/handler_server_test.go @@ -93,7 +93,6 @@ func (s) TestHandlerTransport_NewServerHandlerTransport(t *testing.T) { // Return w without its Flush method type onlyCloseNotifier interface { http.ResponseWriter - http.CloseNotifier } return struct{ onlyCloseNotifier }{w.(onlyCloseNotifier)} }, @@ -196,7 +195,6 @@ func (s) TestHandlerTransport_NewServerHandlerTransport(t *testing.T) { rrec := httptest.NewRecorder() rw := http.ResponseWriter(testHandlerResponseWriter{ ResponseRecorder: rrec, - closeNotify: make(chan bool, 1), }) if tt.modrw != nil { @@ -227,16 +225,13 @@ func (s) TestHandlerTransport_NewServerHandlerTransport(t *testing.T) { type testHandlerResponseWriter struct { *httptest.ResponseRecorder - closeNotify chan bool } -func (w testHandlerResponseWriter) CloseNotify() <-chan bool { return w.closeNotify } -func (w testHandlerResponseWriter) Flush() {} +func (w testHandlerResponseWriter) Flush() {} func newTestHandlerResponseWriter() http.ResponseWriter { return testHandlerResponseWriter{ ResponseRecorder: httptest.NewRecorder(), - closeNotify: make(chan bool, 1), } }