feature: implement Output method for FakeCmd

This commit is contained in:
SataQiu 2019-12-04 22:43:29 +08:00 committed by Srini Brahmaroutu
parent b221620e59
commit 82a590b2d5

View File

@ -240,9 +240,9 @@ func makeFakeCmd(fakeCmd *testingexec.FakeCmd, cmd string, args ...string) testi
} }
} }
func makeFakeOutput(output string, err error) testingexec.FakeCombinedOutputAction { func makeFakeOutput(output string, err error) testingexec.FakeAction {
o := output o := output
return func() ([]byte, error) { return func() ([]byte, []byte, error) {
return []byte(o), err return []byte(o), nil, err
} }
} }