Skip to content

Commit

Permalink
Comment out calls to httptest.Server.Close()
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtek-t committed Feb 15, 2016
1 parent 48caef3 commit 463d21f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
9 changes: 6 additions & 3 deletions test/integration/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ import (

func TestClient(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

ns := api.NamespaceDefault
framework.DeleteAllEtcdKeys()
Expand Down Expand Up @@ -109,7 +110,8 @@ func TestClient(t *testing.T) {

func TestSingleWatch(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

ns := "blargh"
deleteAllEtcdKeys()
Expand Down Expand Up @@ -194,7 +196,8 @@ func TestMultiWatch(t *testing.T) {
framework.DeleteAllEtcdKeys()
defer framework.DeleteAllEtcdKeys()
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

ns := api.NamespaceDefault
client := client.NewOrDie(&client.Config{Host: s.URL, ContentConfig: client.ContentConfig{GroupVersion: testapi.Default.GroupVersion()}})
Expand Down
9 changes: 6 additions & 3 deletions test/integration/master_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ import (

func TestExperimentalPrefix(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

resp, err := http.Get(s.URL + "/apis/extensions/")
if err != nil {
Expand All @@ -44,7 +45,8 @@ func TestExperimentalPrefix(t *testing.T) {

func TestWatchSucceedsWithoutArgs(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

resp, err := http.Get(s.URL + "/api/v1/namespaces?watch=1")
if err != nil {
Expand All @@ -58,7 +60,8 @@ func TestWatchSucceedsWithoutArgs(t *testing.T) {

func TestAccept(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

resp, err := http.Get(s.URL + "/api/")
if err != nil {
Expand Down
6 changes: 4 additions & 2 deletions test/integration/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ func checkForExpectedMetrics(t *testing.T, metrics []*prometheuspb.MetricFamily,

func TestMasterProcessMetrics(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

metrics, err := scrapeMetrics(s)
if err != nil {
Expand All @@ -103,7 +104,8 @@ func TestMasterProcessMetrics(t *testing.T) {

func TestApiserverMetrics(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

// Make a request to the apiserver to ensure there's at least one data point
// for the metrics we're expecting -- otherwise, they won't be exported.
Expand Down
3 changes: 2 additions & 1 deletion test/integration/persistent_volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func init() {

func TestPersistentVolumeRecycler(t *testing.T) {
_, s := framework.RunAMaster(t)
defer s.Close()
// TODO: Uncomment when fix #19254
// defer s.Close()

deleteAllEtcdKeys()
// Use higher QPS and Burst, there is a test for race condition below, which
Expand Down

0 comments on commit 463d21f

Please sign in to comment.