mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
feature: implement Output method for FakeCmd
This commit is contained in:
parent
b221620e59
commit
82a590b2d5
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user