Skip to content

Commit

Permalink
Only use repeatability if no repeatability left
Browse files Browse the repository at this point in the history
  • Loading branch information
uberbo authored and boyan-soubachov committed Jan 13, 2021
1 parent eb8c41e commit acba37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mock/mock.go
Expand Up @@ -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
Expand Down

0 comments on commit acba37e

Please sign in to comment.