Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid unnecessary indexing in test fixtures #4377

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions spec/factories/items.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@
end

to_create do |builder|
Dor::Services::Client.objects.register(params: builder.cocina_model).tap do |item|
# Since we don't run the rabbitMQ service in our cluster, we have to index these manually
Argo::Indexer.reindex_druid_remotely(item.externalIdentifier)
end
# This will trigger indexing in the dor-indexing-app
Dor::Services::Client.objects.register(params: builder.cocina_model)
end

admin_policy_id { 'druid:hv992ry2431' }
Expand Down