Commit 970d0db2 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Fix order-dependent spec

Use existing connection's db_conofig instead of
Gitlab::Database.main.config.

This returns a ActiveRecord::DatabaseConfigurations::HashConfig which
contains the db name.
parent 781ce328
......@@ -143,7 +143,7 @@ RSpec.describe Gitlab::Database::Connection do
describe '#disable_prepared_statements' do
around do |example|
original_config = ::Gitlab::Database.main.config
original_config = connection.scope.connection.pool.db_config
example.run
......
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