Skip to content

Commit

Permalink
Use compliance test for filestore.
Browse files Browse the repository at this point in the history
  • Loading branch information
whilo committed Aug 22, 2020
1 parent 32618ef commit ac638bc
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions test/konserve/filestore_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,8 @@
_ (spit "/tmp/foo" (range 1 10))
_ (delete-store folder)
store (<!! (new-fs-store folder))]
(testing "edn" (is (= (<!! (get store :foo))
nil))
(<!! (assoc-in store [:foo] {:bar :baz}))
(is (= (<!! (get store :foo))
{:bar :baz}))
(<!! (assoc-in store [:baz] 0))
(<!! (update-in store [:baz] inc))
(is (= (<!! (get store :baz)) 1))
(is (= (<!! (keys store))
#{(<!! (get-meta store :foo)) (<!! (get-meta store :baz))}))
(<!! (dissoc store :foo))
(is (= (<!! (get store :foo))
nil))
(is (= (<!! (keys store))
#{(<!! (get-meta store :baz))})))
(testing "compliance test"
(compliance-test store))
(testing "Binary"
(testing "ByteArray"
(let [res-ch (chan)]
Expand Down

0 comments on commit ac638bc

Please sign in to comment.