Commit cbc7db9b authored by Robert Speicher's avatar Robert Speicher

Merge branch 'proper-geo-detection-support-in-db-cleaner' into 'master'

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

See merge request !2282
parents 75ac0420 4ddbe671
...@@ -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