Skip to content

Commit

Permalink
Merge pull request #8680 from frej/frej/fix-timetrap-argument
Browse files Browse the repository at this point in the history
compiler tests: Correct bad timetrap limit
  • Loading branch information
jhogberg committed Jul 29, 2024
2 parents 571e63b + 9a6084d commit 71a30ba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/compiler/test/random_code_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ compile(_Config) ->
list_to_integer(NumTests0)
end,

%% Conservatively assume that we can run 10 tests each second.
TimeTrap = {seconds,60_000 + (NumTests+99) div 100},
%% Conservatively assume that we can run 10 tests each
%% second.
TimeTrap = {seconds, (60 + (NumTests+9) div 10)},
ct:timetrap(TimeTrap),
io:format("~p tests\n", [NumTests]),
true = proper:quickcheck(compile_prop:compile(),
Expand Down

0 comments on commit 71a30ba

Please sign in to comment.