Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
juliens authored and jprobinson committed Jan 25, 2018
1 parent 4c5b6dc commit 289a3b8
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions gzip_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -325,8 +325,7 @@ func TestFlushBeforeWrite(t *testing.T) {
}

func TestImplementCloseNotifier(t *testing.T) {
request := &http.Request{}
request.Header = http.Header{}
request := httptest.NewRequest(http.MethodGet, "/", nil)
request.Header.Set(acceptEncoding, "gzip")
GzipHandler(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request){
_, ok := rw.(http.CloseNotifier)
Expand All @@ -335,8 +334,7 @@ func TestImplementCloseNotifier(t *testing.T) {
}

func TestImplementFlusherAndCloseNotifier(t *testing.T) {
request := &http.Request{}
request.Header = http.Header{}
request := httptest.NewRequest(http.MethodGet, "/", nil)
request.Header.Set(acceptEncoding, "gzip")
GzipHandler(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request){
_, okCloseNotifier := rw.(http.CloseNotifier)
Expand All @@ -347,8 +345,7 @@ func TestImplementFlusherAndCloseNotifier(t *testing.T) {
}

func TestNotImplementCloseNotifier(t *testing.T) {
request := &http.Request{}
request.Header = http.Header{}
request := httptest.NewRequest(http.MethodGet, "/", nil)
request.Header.Set(acceptEncoding, "gzip")
GzipHandler(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request){
_, ok := rw.(http.CloseNotifier)
Expand Down

0 comments on commit 289a3b8

Please sign in to comment.