Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Brink committed Apr 7, 2017
1 parent d6bc60f commit 645b8e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 0 additions & 12 deletions ethcore/light/src/client/header_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -517,18 +517,6 @@ mod tests {
use time::Duration;
use util::Mutex;

#[test]
fn basic_chain_with_cache() {
let spec = Spec::new_test();
let genesis_header = spec.genesis_header();
let db = make_db();

let cache = Arc::new(Mutex::new(Cache::new(Default::default(), Duration::hours(6))));

let chain = HeaderChain::new(db.clone(), None, &::rlp::encode(&genesis_header), cache);

}

fn make_db() -> Arc<::util::KeyValueDB> {
Arc::new(::util::kvdb::in_memory(0))
}
Expand Down
3 changes: 2 additions & 1 deletion sync/src/light_sync/tests/test_net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
}

Expand Down

0 comments on commit 645b8e4

Please sign in to comment.