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

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
arkpar committed Mar 12, 2016
1 parent 78207ca commit 059af81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions sync/src/tests/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ fn propagate_blocks() {
#[test]
fn restart_on_malformed_block() {
let mut net = TestNet::new(2);
net.peer_mut(1).chain.add_blocks(10, EachBlockWith::Uncle);
net.peer_mut(1).chain.corrupt_block(6);
net.peer_mut(1).chain.add_blocks(600, EachBlockWith::Uncle);
net.peer_mut(1).chain.corrupt_block(590);
net.sync_steps(10);

assert_eq!(net.peer(0).chain.chain_info().best_block_number, 4);
assert_eq!(net.peer(0).chain.chain_info().best_block_number, 512);
}

0 comments on commit 059af81

Please sign in to comment.