Merge pull request #12500 from yujuhong/fix_panic

Check error before accessing returned value in e2e/kubectl.go
This commit is contained in:
Alex Robinson
2015-08-10 15:25:23 -07:00

View File

@@ -72,8 +72,8 @@ var _ = Describe("Kubectl client", func() {
c, err = loadClient()
expectNoError(err)
testingNs, err = createTestingNS("kubectl", c)
ns = testingNs.Name
Expect(err).NotTo(HaveOccurred())
ns = testingNs.Name
})
AfterEach(func() {