aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/cmd
diff options
context:
space:
mode:
authorMike McQuaid2018-02-13 09:34:19 +0000
committerMike McQuaid2018-02-13 09:34:25 +0000
commitc57ab279ba4c723c275864e4f99c55a1cbc62a67 (patch)
treeb2abbb6af61ec460060a77f40a571383d4565d64 /Library/Homebrew/test/cmd
parente904983275eb17cde115f8f586a8e6502a9126d4 (diff)
downloadbrew-c57ab279ba4c723c275864e4f99c55a1cbc62a67.tar.bz2
Use rspec-retry in flaky brew tests.
We have a few tests that are intermittently flaky. Let's try this to see if we can get them a bit more reliable.
Diffstat (limited to 'Library/Homebrew/test/cmd')
-rw-r--r--Library/Homebrew/test/cmd/search_spec.rb2
-rw-r--r--Library/Homebrew/test/cmd/services_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/cmd/search_spec.rb b/Library/Homebrew/test/cmd/search_spec.rb
index 36ddde3e1..aec23ae4c 100644
--- a/Library/Homebrew/test/cmd/search_spec.rb
+++ b/Library/Homebrew/test/cmd/search_spec.rb
@@ -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 do
+ it "falls back to a GitHub tap search when no formula is found", :needs_network, retry: 3 do
expect { brew "search", "caskroom/cask/firefox" }
.to output(/firefox/).to_stdout
.and output(/Searching/).to_stderr
diff --git a/Library/Homebrew/test/cmd/services_spec.rb b/Library/Homebrew/test/cmd/services_spec.rb
index 669e84e5f..fb40ce0b2 100644
--- a/Library/Homebrew/test/cmd/services_spec.rb
+++ b/Library/Homebrew/test/cmd/services_spec.rb
@@ -1,4 +1,4 @@
-describe "brew services", :integration_test, :needs_macos, :needs_network do
+describe "brew services", :integration_test, :needs_macos, :needs_network, retry: 3 do
it "allows controlling services" do
setup_remote_tap "homebrew/services"