diff --git a/command_test.go b/command_test.go index 8ec52f44..ec8e2aef 100644 --- a/command_test.go +++ b/command_test.go @@ -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()