Commit 4ddbe671 authored by Rémy Coutable's avatar Rémy Coutable

Detect Geo secondary role properly in spec/support/db_cleaner.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 3d5a4ce5
...@@ -34,7 +34,7 @@ RSpec.configure do |config| ...@@ -34,7 +34,7 @@ RSpec.configure do |config|
end end
def setup_database_cleaner def setup_database_cleaner
if Rails.configuration.respond_to?(:geo_database) if Gitlab::Geo.secondary_role_enabled?
DatabaseCleaner[:active_record, { connection: Geo::BaseRegistry }] DatabaseCleaner[:active_record, { connection: Geo::BaseRegistry }]
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment