Skip to content

Commit 2330c33

Browse files
author
Gregor Pirolt
committed
ensure tests are populated with new flag
1 parent 808dbb3 commit 2330c33

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

cmd/kubectl_token_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ func TestCacheCredential(t *testing.T) {
126126
flagSet := flag.NewFlagSet("test", 0)
127127
flagSet.String("server", "rancher.example.com", "doc")
128128
flagSet.String("config", t.TempDir(), "doc")
129+
flagSet.String("config-helper", "built-in", "")
129130
cliCtx := cli.NewContext(nil, flagSet, nil)
130131

131132
serverConfig, err := lookupServerConfig(cliCtx)

cmd/server_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,5 +272,6 @@ func newTestConfig() *config.Config {
272272
"server2": {URL: "https://myserver-2.com"},
273273
"server3": {URL: "https://myserver-3.com"},
274274
},
275+
Helper: "built-in",
275276
}
276277
}

0 commit comments

Comments
 (0)