Increase CI retries to 4 for these examples

By default it is 2 tries in CI.
This commit is contained in:
Michael Kozono 2017-06-29 10:54:10 -07:00
parent 6bbbc0ba80
commit 790c740cce
1 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,12 @@ describe Gitlab::HealthChecks::FsShardsCheck do
}.with_indifferent_access
end
# Unsolved intermittent failure in CI https://gitlab.com/gitlab-org/gitlab-ce/issues/31128
around(:each) do |example|
times_to_try = ENV['CI'] ? 4 : 1
example.run_with_retry retry: times_to_try
end
it { is_expected.to all(have_attributes(labels: { shard: :default })) }
it { is_expected.to include(an_object_having_attributes(name: :filesystem_accessible, value: 0)) }