diff --git a/lib/test_cmr/load_data.rb b/lib/test_cmr/load_data.rb index be1775de0..46fd53fbf 100644 --- a/lib/test_cmr/load_data.rb +++ b/lib/test_cmr/load_data.rb @@ -678,6 +678,8 @@ def reset_provider(provider_id) end guid = "prov-guid-#{Time.now.to_i}" + # Wait for the cascade delete to finish or else we may create races in CMR + wait_for_indexing # Recreate provider in Ingest resp = connection.post do |req|