mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-10 12:26:02 +00:00
1d6a9951d6
* move rocksdb support to eth1 only used here / causes unnecessary build deps
21 lines
367 B
Nim
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)
|