mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
hyperkube_test should not depends on number of spaces.
This commit is contained in:
parent
aba95a169b
commit
868edcb231
@ -175,7 +175,8 @@ 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, "-h, --help help for hyperkube")
|
||||
assert.Contains(t, x.output, "-h, --help")
|
||||
assert.Contains(t, x.output, "help for hyperkube")
|
||||
assert.NotContains(t, x.output, "test1 Run")
|
||||
}
|
||||
|
||||
@ -183,7 +184,8 @@ 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, "-h, --help help for hyperkube")
|
||||
assert.Contains(t, x.output, "-h, --help")
|
||||
assert.Contains(t, x.output, "help for hyperkube")
|
||||
assert.NotContains(t, x.output, "test1 Run")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user