2022-04-06 05:28:19 +00:00
|
|
|
{.used.}
|
|
|
|
|
|
|
|
import
|
|
|
|
std/os,
|
|
|
|
unittest2,
|
|
|
|
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()
|
|
|
|
|
2023-01-27 14:57:48 +00:00
|
|
|
testKvStore(kvStore db, false, false)
|