mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 18:02:01 +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
|
||||
return func() ([]byte, error) {
|
||||
return []byte(o), err
|
||||
return func() ([]byte, []byte, error) {
|
||||
return []byte(o), nil, err
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user