diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-05 09:11:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-08-05 09:11:46 +0300 |
commit | acda833a93d5372cdb11b50d01dc14620a451496 (patch) | |
tree | 38d017ff14ae51359a8c378fa948496b8a10f829 /spec/spec_helper.rb | |
parent | 335dc0be1feec6e3f37be353a630576119c75e75 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7c4e2ec3ecc..8d86611407e 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -391,6 +391,11 @@ RSpec.configure do |config| Gitlab::WithRequestStore.with_request_store { example.run } end + config.around(:example, :enable_rugged) do |example| + # Skip tests that need rugged when using praefect DB. + example.run unless GitalySetup.praefect_with_db? + end + # previous test runs may have left some resources throttled config.before do ::Gitlab::ExclusiveLease.reset_all!("el:throttle:*") |