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>2021-11-03 06:13:15 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-11-03 06:13:15 +0300
commit6f0447dba04ade76f8ea5fba59bbb48625afb9b6 (patch)
treee0fc195c1d510370d5ef3e90d31e0ef109f3b7b0 /spec/lib/marginalia_spec.rb
parent511c2bbab1ffd3832b734d7d8ee513fddf6edcb4 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/lib/marginalia_spec.rb')
-rw-r--r--spec/lib/marginalia_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/marginalia_spec.rb b/spec/lib/marginalia_spec.rb
index 3f39d969dbd..53048ae2e6b 100644
--- a/spec/lib/marginalia_spec.rb
+++ b/spec/lib/marginalia_spec.rb
@@ -59,14 +59,14 @@ RSpec.describe 'Marginalia spec' do
"application" => "test",
"endpoint_id" => "MarginaliaTestController#first_user",
"correlation_id" => correlation_id,
- "db_config_name" => "ci"
+ "db_config_name" => ENV['GITLAB_LOAD_BALANCING_REUSE_PRIMARY_ci'] == 'main' ? 'main' : 'ci'
}
end
- before do |example|
+ before do
skip_if_multiple_databases_not_setup
- allow(User).to receive(:connection) { Ci::CiDatabaseRecord.connection }
+ allow(User).to receive(:connection) { Ci::ApplicationRecord.connection }
end
it 'generates a query that includes the component and value' do