Check error before accessing returned value in e2e/kubectl.go

This avoids test panics.
pull/6/head
Yu-Ju Hong 2015-08-10 15:02:17 -07:00
parent f195a80e53
commit 13aec6421a
1 changed files with 1 additions and 1 deletions

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() {