Skip to content

Commit febc952

Browse files
authored
Merge pull request kubernetes#80331 from wongma7/framework-panic
Surface error returned by LoadConfig
2 parents 323356f + 84b5396 commit febc952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/e2e/framework/framework.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ func (f *Framework) BeforeEach() {
162162
if f.ClientSet == nil {
163163
ginkgo.By("Creating a kubernetes client")
164164
config, err := LoadConfig()
165+
ExpectNoError(err)
165166
testDesc := ginkgo.CurrentGinkgoTestDescription()
166167
if len(testDesc.ComponentTexts) > 0 {
167168
componentTexts := strings.Join(testDesc.ComponentTexts, " ")
@@ -171,7 +172,6 @@ func (f *Framework) BeforeEach() {
171172
componentTexts)
172173
}
173174

174-
ExpectNoError(err)
175175
config.QPS = f.Options.ClientQPS
176176
config.Burst = f.Options.ClientBurst
177177
if f.Options.GroupVersion != nil {

0 commit comments

Comments
 (0)