Skip to content

Commit

Permalink
Merge pull request #117530 from SataQiu/fix-test-panic-20230422
Browse files Browse the repository at this point in the history
kubeadm: fix unit test panic for TestNewResetData
  • Loading branch information
k8s-ci-robot committed Apr 22, 2023
2 parents 25a25e2 + 3469bb0 commit b214488
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/kubeadm/app/cmd/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ 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",
},
{
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")),
},
Expand Down

0 comments on commit b214488

Please sign in to comment.