diff --git a/spec/factories/items.rb b/spec/factories/items.rb index 52ed19a45..ae1206e62 100644 --- a/spec/factories/items.rb +++ b/spec/factories/items.rb @@ -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' }