Skip to content

Commit

Permalink
Add RocksDB Put Entries Test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkiel committed Apr 24, 2022
1 parent 1645f14 commit 13cde98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/rocksdb/test/blaze/db/kv/rocksdb_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,10 @@
(kv/put! db (ba 0x00) (ba 0x01))
(is (bytes= (ba 0x01) (kv/get db (ba 0x00)))))

(testing "entries"
(kv/put! db [[:default (ba 0x00) (ba 0x01)]])
(is (bytes= (ba 0x01) (kv/get db (ba 0x00)))))

(testing "errors on unknown column-family"
(is (ba/not-found? (ba/try-anomaly (kv/put! db [[:a (ba 0x00) (ba 0x01)]])))))))

Expand Down

0 comments on commit 13cde98

Please sign in to comment.