                                            dissoc :short-name :version-id))
         gran2 (d/ingest "PROV1" (update-in (dg/granule new-coll) [:collection-ref]
                                            dissoc :entry-title))]
-
+    (index/wait-until-indexed)
     ;; Make sure the granules reference the correct collection
     (is (= (:concept-id new-coll)
            (get-in (ingest/get-concept (:concept-id gran1) (:revision-id gran1))

                  (assoc (dg/granule collection)
                         :format "application/echo10+xml; charset=utf-8"))
        {:keys [status errors]} (ingest/ingest-concept granule)]
    (is (= 200 status))))

;; Verify ingest behaves properly if request is missing content type.

          granule (dg/umm-granule->granule-concept
                    (dg/granule collection {:concept-id supplied-concept-id}))
          {:keys [concept-id revision-id]} (ingest/ingest-concept granule)]
      (index/wait-until-indexed)
      (is (ingest/concept-exists-in-mdb? concept-id revision-id))
      (is (= supplied-concept-id concept-id))
      (is (= 1 revision-id)))))
