Browse Source

Close response body

pull/661/head
Sukhjit Singh 4 years ago
parent
commit
01e337832b
  1. 2
      mux_httpserver_test.go

2
mux_httpserver_test.go

@ -25,6 +25,8 @@ func TestSchemeMatchers(t *testing.T) { @@ -25,6 +25,8 @@ func TestSchemeMatchers(t *testing.T) {
if err != nil {
t.Fatalf("unexpected error getting from server: %v", err)
}
defer resp.Body.Close()
if resp.StatusCode != 200 {
t.Fatalf("expected a status code of 200, got %v", resp.StatusCode)
}

Loading…
Cancel
Save