mirror of https://github.com/status-im/nim-eth.git
18 lines
329 B
Nim
18 lines
329 B
Nim
{.used.}
|
|
|
|
import
|
|
std/[os, unittest],
|
|
chronicles,
|
|
../../eth/db/[kvstore, kvstore_rocksdb],
|
|
./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)
|