Clear cache collections in the correct db

This commit is contained in:
Michael Klishin 2013-04-17 02:26:42 +04:00
parent 0a386750c3
commit 957623094b

View file

@ -85,10 +85,12 @@
(use-fixtures :each (fn [f]
(mc/remove "basic_monger_cache_entries")
(mc/remove "db_aware_monger_cache_entries")
(let [db (mg/get-db "altcache")]
(mc/remove db "db_aware_monger_cache_entries" {}))
(f)
(mc/remove "basic_monger_cache_entries")
(mc/remove "db_aware_monger_cache_entries")))
(let [db (mg/get-db "altcache")]
(mc/remove db "db_aware_monger_cache_entries" {}))))
(deftest ^{:cache true}