Commit 64f82ab1 authored by Alex Robinson's avatar Alex Robinson

Merge pull request #12500 from yujuhong/fix_panic

Check error before accessing returned value in e2e/kubectl.go
parents 5836d455 13aec642
...@@ -72,8 +72,8 @@ var _ = Describe("Kubectl client", func() { ...@@ -72,8 +72,8 @@ var _ = Describe("Kubectl client", func() {
c, err = loadClient() c, err = loadClient()
expectNoError(err) expectNoError(err)
testingNs, err = createTestingNS("kubectl", c) testingNs, err = createTestingNS("kubectl", c)
ns = testingNs.Name
Expect(err).NotTo(HaveOccurred()) Expect(err).NotTo(HaveOccurred())
ns = testingNs.Name
}) })
AfterEach(func() { AfterEach(func() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment