diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-06-29 10:54:10 -0700 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-06-29 16:54:25 -0700 |
commit | 790c740cce8487d1155607355d06f42ee2e83fac (patch) | |
tree | 1f3ea546a41257881afaf3177490549272d38a73 | |
parent | 6bbbc0ba80d98a5479cf1c962835487f73e00ef7 (diff) | |
download | gitlab-ce-790c740cce8487d1155607355d06f42ee2e83fac.tar.gz |
Increase CI retries to 4 for these examples
By default it is 2 tries in CI.
-rw-r--r-- | spec/lib/gitlab/health_checks/fs_shards_check_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb b/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb index 61c10d47434..c8c402b4f71 100644 --- a/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb +++ b/spec/lib/gitlab/health_checks/fs_shards_check_spec.rb @@ -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)) } |