Skip to content

Commit

Permalink
Use cmd.New from test helper
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jul 24, 2023
1 parent 87638fb commit ba69238
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"time"

"github.com/databricks/cli/cmd/root"
"github.com/databricks/cli/cmd"
_ "github.com/databricks/cli/cmd/version"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
Expand Down Expand Up @@ -117,7 +117,7 @@ func (t *cobraTestRunner) RunBackground() {
var stdoutW, stderrW io.WriteCloser
stdoutR, stdoutW = io.Pipe()
stderrR, stderrW = io.Pipe()
root := root.RootCmd
root := cmd.New()
root.SetOut(stdoutW)
root.SetErr(stderrW)
root.SetArgs(t.args)
Expand Down

0 comments on commit ba69238

Please sign in to comment.