mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #67375 from hanxiaoshuai/fix0814
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. remove unused code in kubeadm/app/cmd/reset_test.go **What this PR does / why we need it**: remove unused code in kubeadm/app/cmd/reset_test.go **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
780f4b46e0
@ -227,23 +227,6 @@ func TestConfigDirCleaner(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type fakeDockerChecker struct {
|
|
||||||
warnings []error
|
|
||||||
errors []error
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *fakeDockerChecker) Check() (warnings, errors []error) {
|
|
||||||
return c.warnings, c.errors
|
|
||||||
}
|
|
||||||
|
|
||||||
func (c *fakeDockerChecker) Name() string {
|
|
||||||
return "FakeDocker"
|
|
||||||
}
|
|
||||||
|
|
||||||
func newFakeDockerChecker(warnings, errors []error) preflight.Checker {
|
|
||||||
return &fakeDockerChecker{warnings: warnings, errors: errors}
|
|
||||||
}
|
|
||||||
|
|
||||||
func TestRemoveContainers(t *testing.T) {
|
func TestRemoveContainers(t *testing.T) {
|
||||||
fcmd := fakeexec.FakeCmd{
|
fcmd := fakeexec.FakeCmd{
|
||||||
CombinedOutputScript: []fakeexec.FakeCombinedOutputAction{
|
CombinedOutputScript: []fakeexec.FakeCombinedOutputAction{
|
||||||
|
Loading…
Reference in New Issue
Block a user