Comment out calls to httptest.Server.Close() to work around

https://github.com/golang/go/issues/12262 . See #19254 for
more details. This change should be reverted when we upgrade
to Go 1.6.
This commit is contained in:
David Oppenheimer
2016-01-10 14:39:32 -08:00
parent 6f50699b93
commit 8ac484793d
50 changed files with 410 additions and 202 deletions

View File

@@ -70,7 +70,8 @@ func testHTTPContainerInfoGetter(
t.Fatal(err)
}
}))
defer ts.Close()
// TODO: Uncomment when fix #19254
// defer ts.Close()
hostURL, err := url.Parse(ts.URL)
if err != nil {
t.Fatal(err)
@@ -171,7 +172,8 @@ func TestHTTPGetMachineInfo(t *testing.T) {
t.Fatal(err)
}
}))
defer ts.Close()
// TODO: Uncomment when fix #19254
// defer ts.Close()
hostURL, err := url.Parse(ts.URL)
if err != nil {
t.Fatal(err)