Fix: test case wrong output in cmd/kubeadm/app/cmd/completion_test.go

This commit is contained in:
pengpeng wu 2022-04-06 10:59:58 +08:00
parent 820247a3ae
commit 0b076a3dc3

View File

@ -39,7 +39,7 @@ func TestNewCmdCompletion(t *testing.T) {
cmd := newCmdCompletion(&out, "") cmd := newCmdCompletion(&out, "")
parentCmd.AddCommand(cmd) parentCmd.AddCommand(cmd)
if err := parentCmd.Execute(); err != nil { if err := parentCmd.Execute(); err != nil {
t.Errorf("Cannot exectute newCmdCompletion: %v", err) t.Errorf("Cannot execute newCmdCompletion: %v", err)
} }
} }