Remove/replace SetOutput on Command - deprecated (#1078)

Replace SetOutput on Command - deprecated
This commit is contained in:
John McBride 2020-04-06 11:36:04 -06:00 committed by GitHub
parent 47414285f9
commit 7fead4bf3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1814,7 +1814,8 @@ func (tc *calledAsTestcase) test(t *testing.T) {
parent.SetArgs(tc.args) parent.SetArgs(tc.args)
output := new(bytes.Buffer) output := new(bytes.Buffer)
parent.SetOutput(output) parent.SetOut(output)
parent.SetErr(output)
parent.Execute() parent.Execute()