Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-08-05 09:11:46 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-05 09:11:46 +0300
commitacda833a93d5372cdb11b50d01dc14620a451496 (patch)
tree38d017ff14ae51359a8c378fa948496b8a10f829 /spec/spec_helper.rb
parent335dc0be1feec6e3f37be353a630576119c75e75 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb5
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:*")