mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
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:
@@ -40,7 +40,8 @@ func TestDoRequestSuccess(t *testing.T) {
|
||||
T: t,
|
||||
}
|
||||
testServer := httptest.NewServer(&fakeHandler)
|
||||
defer testServer.Close()
|
||||
// TODO: Uncomment when fix #19254
|
||||
// defer testServer.Close()
|
||||
c, err := RESTClientFor(&Config{
|
||||
Host: testServer.URL,
|
||||
GroupVersion: testapi.Default.GroupVersion(),
|
||||
@@ -83,7 +84,8 @@ func TestDoRequestFailed(t *testing.T) {
|
||||
T: t,
|
||||
}
|
||||
testServer := httptest.NewServer(&fakeHandler)
|
||||
defer testServer.Close()
|
||||
// TODO: Uncomment when fix #19254
|
||||
// defer testServer.Close()
|
||||
c, err := RESTClientFor(&Config{
|
||||
Host: testServer.URL,
|
||||
GroupVersion: testapi.Default.GroupVersion(),
|
||||
@@ -115,7 +117,8 @@ func TestDoRequestCreated(t *testing.T) {
|
||||
T: t,
|
||||
}
|
||||
testServer := httptest.NewServer(&fakeHandler)
|
||||
defer testServer.Close()
|
||||
// TODO: Uncomment when fix #19254
|
||||
// defer testServer.Close()
|
||||
c, err := RESTClientFor(&Config{
|
||||
Host: testServer.URL,
|
||||
GroupVersion: testapi.Default.GroupVersion(),
|
||||
|
||||
Reference in New Issue
Block a user