spec_helper: increase tests timeout.

When GitHub Actions is congested some tests can take longer than this
(particularly as we're running in parallel). Globally double the time
we allow for all tests.
This commit is contained in:
Mike McQuaid 2020-08-25 10:20:17 +01:00
parent 1b4e1ae6d7
commit 2bdf0d6068
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ describe "Homebrew.reinstall_args" do
it_behaves_like "parseable arguments"
end
describe "brew reinstall", :integration_test, timeout: 120 do
describe "brew reinstall", :integration_test do
it "reinstalls a Formula" do
install_test_formula "testball"
foo_dir = HOMEBREW_CELLAR/"testball/0.1/bin"

View File

@ -7,7 +7,7 @@ describe "Homebrew.test_args" do
end
# randomly segfaults on Linux with portable-ruby.
describe "brew test", :integration_test, :needs_macos, timeout: 120 do
describe "brew test", :integration_test, :needs_macos do
it "tests a given Formula" do
install_test_formula "testball", <<~'RUBY'
test do

View File

@ -181,7 +181,7 @@ RSpec.configure do |config|
end
begin
timeout = example.metadata.fetch(:timeout, 60)
timeout = example.metadata.fetch(:timeout, 120)
inner_timeout = nil
Timeout.timeout(timeout) do
example.run