Retry all specs with :needs_network.
This commit is contained in:
parent
76b41ba3f7
commit
943e227ca1
@ -25,7 +25,7 @@ describe "brew search", :integration_test do
|
|||||||
.and be_a_success
|
.and be_a_success
|
||||||
end
|
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"
|
setup_remote_tap "homebrew/cask"
|
||||||
|
|
||||||
expect { brew "search", "homebrew/cask/firefox" }
|
expect { brew "search", "homebrew/cask/firefox" }
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
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
|
it "allows controlling services" do
|
||||||
setup_remote_tap "homebrew/services"
|
setup_remote_tap "homebrew/services"
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
describe "brew pull", :integration_test do
|
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
|
CoreTap.instance.path.cd do
|
||||||
system "git", "init"
|
system "git", "init"
|
||||||
system "git", "checkout", "-b", "new-branch"
|
system "git", "checkout", "-b", "new-branch"
|
||||||
|
|||||||
@ -84,6 +84,10 @@ RSpec.configure do |config|
|
|||||||
skip "Requires network connection." unless ENV["HOMEBREW_TEST_ONLINE"]
|
skip "Requires network connection." unless ENV["HOMEBREW_TEST_ONLINE"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
config.around(:each, :needs_network) do |example|
|
||||||
|
example.run_with_retry retry: 3, retry_wait: 1
|
||||||
|
end
|
||||||
|
|
||||||
config.before(:each, :needs_svn) do
|
config.before(:each, :needs_svn) do
|
||||||
skip "subversion not installed." unless which "svn"
|
skip "subversion not installed." unless which "svn"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user