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

@@ -20,7 +20,7 @@ func TestClientConfigCommand_UpdateServers(t *testing.T) {
})
defer srv.Shutdown()
ui := new(cli.MockUi)
ui := cli.NewMockUi()
cmd := &NodeConfigCommand{Meta: Meta{Ui: ui}}
// Fails if trying to update with no servers
@@ -48,7 +48,7 @@ func TestClientConfigCommand_UpdateServers(t *testing.T) {
func TestClientConfigCommand_Fails(t *testing.T) {
t.Parallel()
ui := new(cli.MockUi)
ui := cli.NewMockUi()
cmd := &NodeConfigCommand{Meta: Meta{Ui: ui}}
// Fails on misuse