Skip to content

Commit acba37e

Browse files
uberboboyan-soubachov
authored andcommitted
Only use repeatability if no repeatability left
1 parent eb8c41e commit acba37e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mock/mock.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ func (c matchCandidate) isBetterMatchThan(other matchCandidate) bool {
318318
return true
319319
}
320320

321-
if c.call.Repeatability > other.call.Repeatability {
321+
if c.call.Repeatability > 0 && other.call.Repeatability <= 0 {
322322
return true
323323
}
324324
return false

0 commit comments

Comments
 (0)