mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-21 09:57:52 +00:00
bump k8s.io/utils version
This commit is contained in:
@@ -335,14 +335,14 @@ func makeFakeCmd(fakeCmd *testingexec.FakeCmd, cmd string, args ...string) testi
|
||||
}
|
||||
}
|
||||
|
||||
func makeFakeOutput(output string, rc int) testingexec.FakeCombinedOutputAction {
|
||||
func makeFakeOutput(output string, rc int) testingexec.FakeAction {
|
||||
o := output
|
||||
var e error
|
||||
if rc != 0 {
|
||||
e = testingexec.FakeExitError{Status: rc}
|
||||
}
|
||||
return func() ([]byte, error) {
|
||||
return []byte(o), e
|
||||
return func() ([]byte, []byte, error) {
|
||||
return []byte(o), nil, e
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user