Update github.com/spf13/pflag and github.com/spf13/cobra
Update: github.com/spf13/cobra to f62e98d28ab7ad31d707ba837a966378465c7b57 github.com/spf13/cobra/doc to f62e98d28ab7ad31d707ba837a966378465c7b57 github.com/spf13/pflag to 1560c1005499d61b80f865c04d39ca7505bf7f0b Closes issue #29852
This commit is contained in:
@@ -177,7 +177,7 @@ func TestServerHelp(t *testing.T) {
|
||||
x := runFull(t, "hyperkube test1 --help")
|
||||
assert.NoError(t, x.err)
|
||||
assert.Contains(t, x.output, "A simple server named test1")
|
||||
assert.Contains(t, x.output, "--help[=false]: help for hyperkube")
|
||||
assert.Contains(t, x.output, "-h, --help help for hyperkube")
|
||||
assert.NotContains(t, x.output, "test1 Run")
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ func TestServerFlagsBad(t *testing.T) {
|
||||
x := runFull(t, "hyperkube test1 --bad-flag")
|
||||
assert.EqualError(t, x.err, "unknown flag: --bad-flag")
|
||||
assert.Contains(t, x.output, "A simple server named test1")
|
||||
assert.Contains(t, x.output, "--help[=false]: help for hyperkube")
|
||||
assert.Contains(t, x.output, "-h, --help help for hyperkube")
|
||||
assert.NotContains(t, x.output, "test1 Run")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user