Skip to content

Commit

Permalink
Merge pull request kubernetes#21569 from lavalamp/fix-shadowing
Browse files Browse the repository at this point in the history
fix shadowing bug
  • Loading branch information
a-robinson committed Feb 24, 2016
2 parents cbcc258 + 6afe858 commit 475076e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,13 @@ import (
"github.com/onsi/gomega"
"golang.org/x/oauth2"
"golang.org/x/oauth2/google"

"k8s.io/kubernetes/pkg/api"
"k8s.io/kubernetes/pkg/client/unversioned/clientcmd"
"k8s.io/kubernetes/pkg/cloudprovider"
gcecloud "k8s.io/kubernetes/pkg/cloudprovider/providers/gce"
"k8s.io/kubernetes/pkg/util"
"k8s.io/kubernetes/pkg/util/runtime"

. "github.com/onsi/gomega"
)

const (
Expand Down Expand Up @@ -182,9 +181,11 @@ var _ = ginkgo.SynchronizedBeforeSuite(func() []byte {
// test pods from running, and tests that ensure all pods are running and
// ready will fail).
if err := waitForPodsRunningReady(api.NamespaceSystem, testContext.MinStartupPods, podStartupTimeout); err != nil {
c, err := loadClient()
Expect(err).NotTo(HaveOccurred())
dumpAllNamespaceInfo(c, api.NamespaceSystem)
if c, errClient := loadClient(); errClient != nil {
Logf("Unable to dump cluster information because: %v", errClient)
} else {
dumpAllNamespaceInfo(c, api.NamespaceSystem)
}
Failf("Error waiting for all pods to be running and ready: %v", err)
}

Expand Down

0 comments on commit 475076e

Please sign in to comment.