           )
         )
       )
-    (l/close ch)
     )
   )
 

  )

(when (.exists (io/file "/usr" "sbin" "rabbitmqctl"))
  (let [ch (-> (l/connect) (lch/open)) ]
    (doseq [ exchange ["marcxml" "kramerius" "storage"]]
      (le/declare ch exchange "topic"))
    (deftest kramerius-amqp-config-test
      (testing "configure RabbitMQ internal structures"
        (let [ connection {:marcxml2mods (-> "amqp://guest:guest@localhost/marcxml"

            [edeposit.amqp.kramerius.handlers :as h]
            [langohr.basic :as lb]
            [langohr.core :as l]
            [langohr.http :as lh]
            [langohr.consumers :as lc]
            [langohr.exchange :as le]
            [langohr.channel :as lch]
