mirror of
https://github.com/kemko/nomad.git
synced 2026-01-10 20:35:42 +03:00
cli: move tests to use NewMockUi func.
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user