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/event_sync_strategy_spec.rb')
-rw-r--r--spec/services/click_house/sync_strategies/event_sync_strategy_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/services/click_house/sync_strategies/event_sync_strategy_spec.rb b/spec/services/click_house/sync_strategies/event_sync_strategy_spec.rb
index 05fcf6ddeb3..80f5b7b30f7 100644
--- a/spec/services/click_house/sync_strategies/event_sync_strategy_spec.rb
+++ b/spec/services/click_house/sync_strategies/event_sync_strategy_spec.rb
@@ -95,7 +95,7 @@ RSpec.describe ClickHouse::SyncStrategies::EventSyncStrategy, feature_category:
describe '#enabled?' do
context 'when the clickhouse database is configured the feature flag is enabled' do
before do
- allow(ClickHouse::Client.configuration).to receive(:databases).and_return({ main: :some_db })
+ allow(Gitlab::ClickHouse).to receive(:configured?).and_return(true)
stub_feature_flags(event_sync_worker_for_click_house: true)
end
@@ -106,7 +106,7 @@ RSpec.describe ClickHouse::SyncStrategies::EventSyncStrategy, feature_category:
context 'when the clickhouse database 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 'returns false' do
@@ -116,7 +116,7 @@ RSpec.describe ClickHouse::SyncStrategies::EventSyncStrategy, feature_category:
context 'when the feature flag is disabled' do
before do
- allow(ClickHouse::Client.configuration).to receive(:databases).and_return({ main: :some_db })
+ allow(Gitlab::ClickHouse).to receive(:configured?).and_return(true)
stub_feature_flags(event_sync_worker_for_click_house: false)
end