Uncomment the code that cause by #19254

This commit is contained in:
zhouhaibing089
2016-04-21 04:50:55 -07:00
committed by haibzhou
parent c0020aff59
commit bf1a3f99c0
53 changed files with 218 additions and 436 deletions

View File

@@ -35,8 +35,7 @@ import (
func testPrefix(t *testing.T, prefix string) {
_, s := framework.RunAMaster(t)
// TODO: Uncomment when fix #19254
// defer s.Close()
defer s.Close()
resp, err := http.Get(s.URL + prefix)
if err != nil {
@@ -65,8 +64,7 @@ func TestExtensionsPrefix(t *testing.T) {
func TestWatchSucceedsWithoutArgs(t *testing.T) {
_, s := framework.RunAMaster(t)
// TODO: Uncomment when fix #19254
// defer s.Close()
defer s.Close()
resp, err := http.Get(s.URL + "/api/v1/namespaces?watch=1")
if err != nil {
@@ -306,8 +304,7 @@ func TestBatchGroupBackwardCompatibility(t *testing.T) {
func TestAccept(t *testing.T) {
_, s := framework.RunAMaster(t)
// TODO: Uncomment when fix #19254
// defer s.Close()
defer s.Close()
resp, err := http.Get(s.URL + "/api/")
if err != nil {