kubeadm: fix unit test panic for TestNewResetData

This commit is contained in:
SataQiu 2023-04-22 17:02:34 +08:00
parent 25a25e27a9
commit 3469bb05db

View File

@ -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")),
},