         granule (dg/umm-granule->granule-concept (dg/granule collection))
         granule-with-empty-body  (assoc granule :metadata "")
         {:keys [status errors]} (ingest/ingest-concept granule-with-empty-body)]
+    (index/wait-until-indexed)
     (is (= 400 status))
     (is (re-find #"XML content is too short." (first errors)))))
 

                                    (string/replace "2010-12-12T12:00:00" "A")
                                    ;; this is to cause validation error for iso-smap format
                                    (string/replace "gmd:DS_Series" "XXXX"))))]
         (= [400 validation-errors] [status errors]))

       :echo10 ["Line 1 - cvc-datatype-valid.1.2.1: 'A.000Z' is not a valid value for 'dateTime'."

        granule (dg/umm-granule->granule-concept umm-granule)
        {:keys [concept-id revision-id] :as response} (ingest/ingest-concept granule)
        ingested-concept (ingest/get-concept concept-id)]
    (index/wait-until-indexed)
    (is (= 200 (:status response)))
    (is (ingest/concept-exists-in-mdb? concept-id revision-id))
    (is (= 1 revision-id))
