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:
Diffstat (limited to 'spec/services/click_house/sync_strategies/base_sync_strategy_spec.rb')
-rw-r--r--spec/services/click_house/sync_strategies/base_sync_strategy_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/click_house/sync_strategies/base_sync_strategy_spec.rb b/spec/services/click_house/sync_strategies/base_sync_strategy_spec.rb
index eb9324fd24b..af1785a7eb7 100644
--- a/spec/services/click_house/sync_strategies/base_sync_strategy_spec.rb
+++ b/spec/services/click_house/sync_strategies/base_sync_strategy_spec.rb
@@ -128,7 +128,7 @@ RSpec.describe ClickHouse::SyncStrategies::BaseSyncStrategy, feature_category: :
context 'when clickhouse is not configured' do
before do
- allow(ClickHouse::Client.configuration).to receive(:databases).and_return({})
+ allow(Gitlab::ClickHouse).to receive(:configured?).and_return(false)
end
it 'skips execution' do
@@ -138,7 +138,7 @@ RSpec.describe ClickHouse::SyncStrategies::BaseSyncStrategy, feature_category: :
context 'when exclusive lease error happens' do
it 'skips execution' do
- allow(ClickHouse::Client.configuration).to receive(:databases).and_return({ main: :some_db })
+ allow(Gitlab::ClickHouse).to receive(:configured?).and_return(true)
expect(strategy).to receive(:in_lock).and_raise(Gitlab::ExclusiveLeaseHelpers::FailedToObtainLockError)
expect(execute).to eq({ status: :skipped })