Skip to content

Commit

Permalink
update deprecated syntax per GH-9027
Browse files Browse the repository at this point in the history
  • Loading branch information
davemay99 committed Oct 6, 2020
1 parent 29dbd22 commit e0e3a01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion command/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestCommand_Metrics_Cases(t *testing.T) {
srv, _, url := testServer(t, false, nil)
defer srv.Shutdown()

ui := new(cli.MockUi)
ui := cli.NewMockUi()
cmd := &OperatorMetricsCommand{Meta: Meta{Ui: ui}}

cases := []struct {
Expand Down
6 changes: 3 additions & 3 deletions command/operator_debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestDebugSuccesses(t *testing.T) {
srv, _, _ := testServer(t, false, nil)
defer srv.Shutdown()

ui := new(cli.MockUi)
ui := cli.NewMockUi()
cmd := &OperatorDebugCommand{Meta: Meta{Ui: ui}}

// NOTE -- duration must be shorter than default 2m to prevent testify from timing out
Expand All @@ -60,7 +60,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
Expand Down Expand Up @@ -98,7 +98,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{
Expand Down

0 comments on commit e0e3a01

Please sign in to comment.