mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
kubeadm: fix unit test panic for TestNewResetData
This commit is contained in:
parent
25a25e27a9
commit
3469bb05db
@ -59,6 +59,7 @@ func TestNewResetData(t *testing.T) {
|
||||
name: "fails if preflight ignores all but has individual check",
|
||||
flags: map[string]string{
|
||||
options.IgnorePreflightErrors: "all,something-else",
|
||||
options.NodeCRISocket: "unix:///var/run/crio/crio.sock",
|
||||
},
|
||||
expectError: "don't specify individual checks if 'all' is used",
|
||||
},
|
||||
@ -66,6 +67,7 @@ func TestNewResetData(t *testing.T) {
|
||||
name: "pre-flights errors from CLI args",
|
||||
flags: map[string]string{
|
||||
options.IgnorePreflightErrors: "a,b",
|
||||
options.NodeCRISocket: "unix:///var/run/crio/crio.sock",
|
||||
},
|
||||
validate: expectedResetIgnorePreflightErrors(sets.New("a", "b")),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user