Skip to content

Commit

Permalink
Remove/replace SetOutput on Command - deprecated (#1078)
Browse files Browse the repository at this point in the history
Replace SetOutput on Command - deprecated
  • Loading branch information
jpmcb authored Apr 6, 2020
1 parent 4741428 commit 7fead4b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1814,7 +1814,8 @@ func (tc *calledAsTestcase) test(t *testing.T) {
parent.SetArgs(tc.args)

output := new(bytes.Buffer)
parent.SetOutput(output)
parent.SetOut(output)
parent.SetErr(output)

parent.Execute()

Expand Down

0 comments on commit 7fead4b

Please sign in to comment.