Commit 13aec642 authored by Yu-Ju Hong's avatar Yu-Ju Hong

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

This avoids test panics.
parent f195a80e
...@@ -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