Skip to content

Commit

Permalink
Re-disable time limit if using luacov
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 12, 2024
1 parent 6a7c6c1 commit d4fdaa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ local function check_problem(file_name, expected_answer, is_slow, problem_name)
)
end

if not is_slow and elapsed_time > 60 then
if not is_slow and not has_luacov and elapsed_time > 60 then
error(
"Problem " .. problem_name .. " took ~" .. string.format("%.3f", elapsed_time) ..
"s, exceeding the expected time limit of 60s."
Expand Down

0 comments on commit d4fdaa2

Please sign in to comment.