Surface error returned by LoadConfig

This commit is contained in:
Matthew Wong 2019-07-18 16:54:28 -07:00
parent 12f36302f9
commit 84b53966fd

View File

@ -162,6 +162,7 @@ func (f *Framework) BeforeEach() {
if f.ClientSet == nil { if f.ClientSet == nil {
ginkgo.By("Creating a kubernetes client") ginkgo.By("Creating a kubernetes client")
config, err := LoadConfig() config, err := LoadConfig()
ExpectNoError(err)
testDesc := ginkgo.CurrentGinkgoTestDescription() testDesc := ginkgo.CurrentGinkgoTestDescription()
if len(testDesc.ComponentTexts) > 0 { if len(testDesc.ComponentTexts) > 0 {
componentTexts := strings.Join(testDesc.ComponentTexts, " ") componentTexts := strings.Join(testDesc.ComponentTexts, " ")
@ -171,7 +172,6 @@ func (f *Framework) BeforeEach() {
componentTexts) componentTexts)
} }
ExpectNoError(err)
config.QPS = f.Options.ClientQPS config.QPS = f.Options.ClientQPS
config.Burst = f.Options.ClientBurst config.Burst = f.Options.ClientBurst
if f.Options.GroupVersion != nil { if f.Options.GroupVersion != nil {