From 942c39702aaf7176cb1b466c3d0a43229b8a44c7 Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Wed, 27 Mar 2024 15:10:39 -0500 Subject: [PATCH] Avoid unnecessary indexing in test fixtures Fixes #4375 --- spec/factories/items.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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' }