Fix failing tests

This commit is contained in:
Adrian Brink
2017-04-07 20:56:55 +02:00
parent d6bc60f968
commit 645b8e4b0b
2 changed files with 2 additions and 13 deletions

View File

@@ -207,7 +207,8 @@ impl TestNet<Peer> {
pub fn light(n_light: usize, n_full: usize) -> Self {
let mut peers = Vec::with_capacity(n_light + n_full);
for _ in 0..n_light {
let client = LightClient::in_memory(Default::default(), &Spec::new_test(), IoChannel::disconnected());
let cache = Arc::new(Mutex::new(Cache::new(Default::default(), Duration::hours(6))));
let client = LightClient::in_memory(Default::default(), &Spec::new_test(), IoChannel::disconnected(), cache);
peers.push(Arc::new(Peer::new_light(Arc::new(client))))
}