diff --git a/pkg/test/helper.go b/pkg/test/helper.go index a705583caa..4e6fa57897 100644 --- a/pkg/test/helper.go +++ b/pkg/test/helper.go @@ -31,6 +31,7 @@ func TestMainWithMockedCommandHandlers(m *testing.M) { // There may be multiple expected commands, separated by a newline character wantCmds := strings.Split(expectedCmdEnv, "\n") + commandNotFound := true for _, wantCmd := range wantCmds { if wantCmd == gotCmd {