fix test compilation
This commit is contained in:
parent
8d67316ece
commit
04af38bb0d
@ -166,6 +166,7 @@ mod tests {
|
|||||||
use common::*;
|
use common::*;
|
||||||
use super::*;
|
use super::*;
|
||||||
use hashdb::*;
|
use hashdb::*;
|
||||||
|
use journaldb::traits::JournalDB;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn insert_same_in_fork() {
|
fn insert_same_in_fork() {
|
||||||
|
@ -61,7 +61,7 @@ impl OptionOneDB {
|
|||||||
} else {
|
} else {
|
||||||
backing.put(&VERSION_KEY, &encode(&DB_VERSION)).expect("Error writing version to database");
|
backing.put(&VERSION_KEY, &encode(&DB_VERSION)).expect("Error writing version to database");
|
||||||
}
|
}
|
||||||
|
|
||||||
let counters = Some(Arc::new(RwLock::new(OptionOneDB::read_counters(&backing))));
|
let counters = Some(Arc::new(RwLock::new(OptionOneDB::read_counters(&backing))));
|
||||||
OptionOneDB {
|
OptionOneDB {
|
||||||
overlay: MemoryDB::new(),
|
overlay: MemoryDB::new(),
|
||||||
@ -383,6 +383,7 @@ mod tests {
|
|||||||
use common::*;
|
use common::*;
|
||||||
use super::*;
|
use super::*;
|
||||||
use hashdb::*;
|
use hashdb::*;
|
||||||
|
use journaldb::traits::JournalDB;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn insert_same_in_fork() {
|
fn insert_same_in_fork() {
|
||||||
|
Loading…
Reference in New Issue
Block a user