                               :congregation/id cong-id
                               :user/id user-id
                               :permission/ids []})))
-    (projections/refresh-async!)
-    (projections/await-refreshed (Duration/ofSeconds 1))))
+    (refresh-projections!)))
 
 
 ;;;; Tests

                            :command/system "test"
                            :congregation/id cong-id
                            :congregation/name name}))
    (projections/refresh-async!)
    (projections/await-refreshed (Duration/ofSeconds 1))
    cong-id))

(defn revoke-access-from-all! [cong-id]

                              ;; TODO: create a command for removing a single permission? or produce the event directly from tests?
                              ;; removed :gis-access
                              :permission/ids [:view-congregation :configure-congregation]}))
      (refresh-projections!)

      (let [response (-> (request :get (str "/api/congregation/" cong-id "/qgis-project"))
                         (merge session)
