From acba37e5db06f0093b465a7d47822bf13644b66c Mon Sep 17 00:00:00 2001 From: Bo Sunesen Date: Wed, 26 Feb 2020 17:40:55 +0100 Subject: [PATCH] Only use repeatability if no repeatability left --- mock/mock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mock/mock.go b/mock/mock.go index b0056dfcd..e2e6a2d23 100644 --- a/mock/mock.go +++ b/mock/mock.go @@ -318,7 +318,7 @@ func (c matchCandidate) isBetterMatchThan(other matchCandidate) bool { return true } - if c.call.Repeatability > other.call.Repeatability { + if c.call.Repeatability > 0 && other.call.Repeatability <= 0 { return true } return false