summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-06-09 19:08:40 +0200
committerRémy Coutable <remy@rymai.me>2017-06-12 10:23:16 +0200
commit3a33665c9cb768584ce6296b3bacf34a285e0ccb (patch)
tree284eee4114a890ecff6a638f2adacb24bb0e8dec
parentc61c3a0877eea1257deda015eca2267bc63e6a28 (diff)
downloadgitlab-ce-retry-specs.tar.gz
Attempts to run RSpec tests twice (1 retry)retry-specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/spec_helper.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 8b8fbf6e862..9c0862ac9ff 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -75,9 +75,8 @@ RSpec.configure do |config|
end
if ENV['CI']
- # Retry only on feature specs that use JS
- config.around :each, :js do |ex|
- ex.run_with_retry retry: 3
+ config.around(:each) do |ex|
+ ex.run_with_retry retry: 2
end
end