aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/net/http/fs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/http/fs_test.go')
-rw-r--r--libgo/go/net/http/fs_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgo/go/net/http/fs_test.go b/libgo/go/net/http/fs_test.go
index 09d5cfa..59e30a1 100644
--- a/libgo/go/net/http/fs_test.go
+++ b/libgo/go/net/http/fs_test.go
@@ -648,6 +648,8 @@ func TestServeContent(t *testing.T) {
if err != nil {
t.Fatal(err)
}
+ io.Copy(ioutil.Discard, res.Body)
+ res.Body.Close()
if res.StatusCode != tt.wantStatus {
t.Errorf("test %q: status = %d; want %d", testName, res.StatusCode, tt.wantStatus)
}