Rspec/AroundBlock doesn’t know about rspec-retry

This commit is contained in:
Michael Kozono 2017-06-29 16:53:41 -07:00
parent 790c740cce
commit 53c409cb07

View file

@ -98,7 +98,7 @@ describe Gitlab::HealthChecks::FsShardsCheck do
end end
# Unsolved intermittent failure in CI https://gitlab.com/gitlab-org/gitlab-ce/issues/31128 # Unsolved intermittent failure in CI https://gitlab.com/gitlab-org/gitlab-ce/issues/31128
around(:each) do |example| around(:each) do |example| # rubocop:disable RSpec/AroundBlock
times_to_try = ENV['CI'] ? 4 : 1 times_to_try = ENV['CI'] ? 4 : 1
example.run_with_retry retry: times_to_try example.run_with_retry retry: times_to_try
end end