Merge pull request #814 from aaronlehmann/test-response-writer

Make testResponseWriter's CloseNotify return an actual channel instead of nil
This commit is contained in:
Stephen Day 2015-08-03 15:59:42 -07:00
commit c4e553a655

View file

@ -114,7 +114,7 @@ func (trw *testResponseWriter) Header() http.Header {
// http.CloseNotifier interface, which WithResponseWriter expects to be
// implemented.
func (trw *testResponseWriter) CloseNotify() <-chan bool {
return nil
return make(chan bool)
}
func (trw *testResponseWriter) Write(p []byte) (n int, err error) {