nimbus-eth1/tests/db/test_kvstore_rocksdb.nim
Kim De Mey 9b1193c402
Revert "Updated to the latest nim-eth, nim-rocksdb, nim-web3. (#1441)" (#1443)
This reverts commit 1c1a3352b3c68d96aa3681a321b0fec76efe1a63.
2023-01-23 10:50:17 +01:00

21 lines
367 B
Nim

{.used.}
import
std/os,
unittest2,
chronicles,
eth/db/kvstore,
../../nimbus/db/kvstore_rocksdb,
eth/../tests/db/test_kvstore
suite "RocksStoreRef":
test "KvStore interface":
let tmp = getTempDir() / "nimbus-test-db"
removeDir(tmp)
let db = RocksStoreRef.init(tmp, "test")[]
defer:
db.close()
testKvStore(kvStore db, false)