diff options
Diffstat (limited to 'pkg/runtest')
| -rw-r--r-- | pkg/runtest/run.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg/runtest/run.go b/pkg/runtest/run.go index 110ec15d4..501f92dd3 100644 --- a/pkg/runtest/run.go +++ b/pkg/runtest/run.go @@ -537,8 +537,12 @@ func checkResult(req *runRequest) error { return err } if req.repeat != len(infos) { + infoCalls := -1 + if req.result.Info != nil { + infoCalls = len(req.result.Info.Calls) + } return fmt.Errorf("should repeat %v times, but repeated %v, prog calls %v, info calls %v\n%s", - req.repeat, len(infos), req.Prog.Calls, len(req.result.Info.Calls), req.result.Output) + req.repeat, len(infos), req.Prog.Calls, infoCalls, req.result.Output) } } calls := make(map[string]bool) |
