Merge pull request #117530 from SataQiu/fix-test-panic-20230422

kubeadm: fix unit test panic for TestNewResetData
This commit is contained in:
Kubernetes Prow Robot 2023-04-22 05:53:12 -07:00 committed by GitHub
commit b214488b42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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