From 82a590b2d57ad5829aefb88fb6e5a5ba72167c2f Mon Sep 17 00:00:00 2001 From: SataQiu <1527062125@qq.com> Date: Wed, 4 Dec 2019 22:43:29 +0800 Subject: [PATCH] feature: implement Output method for FakeCmd --- safe_format_and_mount_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/safe_format_and_mount_test.go b/safe_format_and_mount_test.go index d6cc06bce58..34bf92fbc25 100644 --- a/safe_format_and_mount_test.go +++ b/safe_format_and_mount_test.go @@ -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 - return func() ([]byte, error) { - return []byte(o), err + return func() ([]byte, []byte, error) { + return []byte(o), nil, err } }