From 844fa3bbd5c1114a2edc1d28eb3e54e263b2b18b Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 17 Nov 2020 12:01:09 +0000 Subject: [PATCH] spec_helper: increase needs_network timeout and retry. This should help with flakiness on these tests. --- Library/Homebrew/test/spec_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb index 91697e5218..f52ca51233 100644 --- a/Library/Homebrew/test/spec_helper.rb +++ b/Library/Homebrew/test/spec_helper.rb @@ -78,7 +78,8 @@ RSpec.configure do |config| config.default_retry_count = 2 config.around(:each, :needs_network) do |example| - example.run_with_retry retry: 3, retry_wait: 3 + example.metadata[:timeout] ||= 120 + example.run_with_retry retry: 5, retry_wait: 5 end end