creating existing collection no longer throws

This commit is contained in:
George Narroway 2024-02-07 10:41:52 +08:00
parent 57f2115e7b
commit 28e054aa3f

View file

@ -349,12 +349,7 @@
(testing "not existing"
(let [db (new-db @client)
_ (mc/create db "my-coll")]
(is (true? (coll-exists? db "my-coll")))))
(testing "existing"
(let [db (new-db @client)
_ (mc/create db "my-coll")]
(is (thrown? Exception (mc/create db "my-coll"))))))
(is (true? (coll-exists? db "my-coll"))))))
(deftest ^:integration test-rename
(testing "not existing"