Skip to content
Snippets Groups Projects
Commit 943e227c authored by Markus Reiter's avatar Markus Reiter
Browse files

Retry all specs with `:needs_network`.

parent 76b41ba3
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ describe "brew search", :integration_test do
.and be_a_success
end
it "falls back to a GitHub tap search when no formula is found", :needs_network, retry: 3 do
it "falls back to a GitHub tap search when no formula is found", :needs_network do
setup_remote_tap "homebrew/cask"
expect { brew "search", "homebrew/cask/firefox" }
......
describe "brew services", :integration_test, :needs_macos, :needs_network, retry: 3 do
describe "brew services", :integration_test, :needs_macos, :needs_network do
it "allows controlling services" do
setup_remote_tap "homebrew/services"
......
describe "brew pull", :integration_test do
it "fetches a patch from a GitHub commit or pull request and applies it", :needs_network, retry: 3 do
it "fetches a patch from a GitHub commit or pull request and applies it", :needs_network do
CoreTap.instance.path.cd do
system "git", "init"
system "git", "checkout", "-b", "new-branch"
......
......@@ -84,6 +84,10 @@ RSpec.configure do |config|
skip "Requires network connection." unless ENV["HOMEBREW_TEST_ONLINE"]
end
config.around(:each, :needs_network) do |example|
example.run_with_retry retry: 3, retry_wait: 1
end
config.before(:each, :needs_svn) do
skip "subversion not installed." unless which "svn"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment