From 7edb310f6e126c4bbb6f185717f922f3a7ca7d8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Sun, 12 Apr 2020 16:38:25 +0200 Subject: [PATCH] Remove timeouts from test runner (#664) Use Ctrl-C locally, and rely on CI's handling in CI. --- test/minitest_runner.rb | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/test/minitest_runner.rb b/test/minitest_runner.rb index 45a8ba056..262400c04 100644 --- a/test/minitest_runner.rb +++ b/test/minitest_runner.rb @@ -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