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/workers/click_house/event_authors_consistency_cron_worker_spec.rb')
-rw-r--r--spec/workers/click_house/event_authors_consistency_cron_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/click_house/event_authors_consistency_cron_worker_spec.rb b/spec/workers/click_house/event_authors_consistency_cron_worker_spec.rb
index 4d7e0e138e9..a66657c639f 100644
--- a/spec/workers/click_house/event_authors_consistency_cron_worker_spec.rb
+++ b/spec/workers/click_house/event_authors_consistency_cron_worker_spec.rb
@@ -7,7 +7,7 @@ RSpec.describe ClickHouse::EventAuthorsConsistencyCronWorker, feature_category:
context 'when ClickHouse is disabled' do
it 'does nothing' do
- allow(ClickHouse::Client).to receive(:database_configured?).and_return(false)
+ allow(Gitlab::ClickHouse).to receive(:configured?).and_return(false)
expect(worker).not_to receive(:log_extra_metadata_on_done)
@@ -17,7 +17,7 @@ RSpec.describe ClickHouse::EventAuthorsConsistencyCronWorker, feature_category:
context 'when the event_sync_worker_for_click_house feature flag is off' do
it 'does nothing' do
- allow(ClickHouse::Client).to receive(:database_configured?).and_return(true)
+ allow(Gitlab::ClickHouse).to receive(:configured?).and_return(true)
stub_feature_flags(event_sync_worker_for_click_house: false)
expect(worker).not_to receive(:log_extra_metadata_on_done)