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_paths_consistency_cron_worker_spec.rb')
-rw-r--r--spec/workers/click_house/event_paths_consistency_cron_worker_spec.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/workers/click_house/event_paths_consistency_cron_worker_spec.rb b/spec/workers/click_house/event_paths_consistency_cron_worker_spec.rb
index 76ce63ed2e4..e9efad169ff 100644
--- a/spec/workers/click_house/event_paths_consistency_cron_worker_spec.rb
+++ b/spec/workers/click_house/event_paths_consistency_cron_worker_spec.rb
@@ -96,18 +96,20 @@ RSpec.describe ClickHouse::EventPathsConsistencyCronWorker, feature_category: :v
stub_const("#{ClickHouse::Concerns::ConsistencyWorker}::POSTGRESQL_BATCH_SIZE", 1)
expect(worker).to receive(:log_extra_metadata_on_done).with(:result,
- { status: :modification_limit_reached, modifications: 2 })
+ { status: :limit_reached, modifications: 1 })
worker.perform
paths = [
"#{namespace1.id}/",
"#{namespace2.traversal_ids.join('/')}/",
- "#{namespace_with_updated_parent.traversal_ids.join('/')}/"
+ "#{namespace_with_updated_parent.traversal_ids.join('/')}/",
+ "#{deleted_namespace_id}/"
]
expect(leftover_paths).to match_array(paths)
- expect(ClickHouse::SyncCursor.cursor_for(:event_namespace_paths_consistency_check)).to eq(deleted_namespace_id)
+ expect(ClickHouse::SyncCursor.cursor_for(:event_namespace_paths_consistency_check))
+ .to eq(namespace_with_updated_parent.id)
end
end