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 } }