Skip to content

Commit

Permalink
Add support for unlimited tests
Browse files Browse the repository at this point in the history
This makes `--test-limit 0` run indefinitely, in line with medusa's
behavior.
  • Loading branch information
elopez committed Aug 30, 2024
1 parent 778f63c commit d6af562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Echidna/Campaign.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ runFuzzWorker callback vm dict workerId initialCorpus testLimit = do
shrink >> lift callback >> run

-- no shrinking work, fuzz
| (null tests || any isOpen tests) && ncalls < testLimit ->
| (null tests || any isOpen tests) && (ncalls < testLimit || testLimit <= 0) ->
fuzz >> lift callback >> run

-- NOTE: this is a hack which forces shrinking of optimization tests
Expand Down

0 comments on commit d6af562

Please sign in to comment.