Skip to content

Commit

Permalink
Remove timeouts from test runner (#664)
Browse files Browse the repository at this point in the history
Use Ctrl-C locally, and rely on CI's handling in CI.
  • Loading branch information
deivid-rodriguez committed Apr 12, 2020
1 parent 56ae986 commit 7edb310
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions test/minitest_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,11 @@ def run
["--name=/#{filtered_methods.join('|')}/"]
end

run_with_timeout(flags)
Minitest.run(flags + $ARGV)
end

private

def max_running_time
300
end

def run_with_timeout(flags)
Timeout.timeout(max_running_time) { Minitest.run(flags + $ARGV) }
rescue Timeout::Error
warn "Test suite timed out after #{max_running_time} seconds"
false
end

def runnables
Minitest::Runnable.runnables
end
Expand Down

0 comments on commit 7edb310

Please sign in to comment.