diff --git a/response_writer_test.go b/response_writer_test.go index 85c1bbbb..02dbe4dd 100644 --- a/response_writer_test.go +++ b/response_writer_test.go @@ -319,8 +319,7 @@ type mockCloseNotifier struct { } func (m *mockCloseNotifier) CloseNotify() <-chan bool { - ch := make(chan bool, 1) - return ch + return make(chan bool) } func TestCloseNotifyWithCloseNotifier(t *testing.T) {