Skip to content

Commit

Permalink
Avoid unnecessary indexing in test fixtures
Browse files Browse the repository at this point in the history
Fixes #4375
  • Loading branch information
jcoyne committed Mar 27, 2024
1 parent 80fe59b commit 942c397
Showing 1 changed file with 2 additions and 4 deletions.
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

0 comments on commit 942c397

Please sign in to comment.