mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Merge pull request #16953 from swagiaal/print-cmd-in-fake-exec
Auto commit by PR queue bot
This commit is contained in:
commit
3d123ba390
@ -31,7 +31,7 @@ type FakeCommandAction func(cmd string, args ...string) Cmd
|
|||||||
|
|
||||||
func (fake *FakeExec) Command(cmd string, args ...string) Cmd {
|
func (fake *FakeExec) Command(cmd string, args ...string) Cmd {
|
||||||
if fake.CommandCalls > len(fake.CommandScript)-1 {
|
if fake.CommandCalls > len(fake.CommandScript)-1 {
|
||||||
panic("ran out of Command() actions")
|
panic(fmt.Sprintf("ran out of Command() actions. Could not handle command [%d]: %s args: %v", fake.CommandCalls, cmd, args))
|
||||||
}
|
}
|
||||||
i := fake.CommandCalls
|
i := fake.CommandCalls
|
||||||
fake.CommandCalls++
|
fake.CommandCalls++
|
||||||
|
Loading…
Reference in New Issue
Block a user