cli: move tests to use NewMockUi func.

This commit is contained in:
James Rasell
2020-10-05 16:07:41 +02:00
parent 5f87acf6cf
commit f5567b3261
78 changed files with 188 additions and 188 deletions

View File

@@ -37,7 +37,7 @@ func TestDebugFails(t *testing.T) {
srv, _, _ := testServer(t, false, nil)
defer srv.Shutdown()
ui := new(cli.MockUi)
ui := cli.NewMockUi()
cmd := &OperatorDebugCommand{Meta: Meta{Ui: ui}}
// Fails incorrect args
@@ -75,7 +75,7 @@ func TestDebugCapturedFiles(t *testing.T) {
srv, _, url := testServer(t, false, nil)
defer srv.Shutdown()
ui := new(cli.MockUi)
ui := cli.NewMockUi()
cmd := &OperatorDebugCommand{Meta: Meta{Ui: ui}}
code := cmd.Run([]string{