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

Commit

Permalink
Fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvc94ch committed Sep 24, 2020
1 parent 6c04d78 commit de30ac0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions client/network/src/discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,7 @@ mod tests {
to_discover[swarm_n].remove(&other);
},
DiscoveryOut::RandomKademliaStarted(_) => {},
DiscoveryOut::BootstrapComplete(_) => {},
e => {panic!("Unexpected event: {:?}", e)},
}
continue 'polling
Expand Down
2 changes: 1 addition & 1 deletion client/network/src/gossip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl<M> QueuedSender<M> {
protocol: ConsensusEngineId,
queue_size_limit: usize,
messages_encode: F
) -> (Self, impl Future<Output = ()> + Send + 'static)
) -> (Self, impl Future<Output = ()> + 'static)
where
M: Send + 'static,
B: BlockT + 'static,
Expand Down
2 changes: 1 addition & 1 deletion client/service/test/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ pub fn connectivity<G, E, Fb, F, Lb, L>(
const NUM_LIGHT_NODES: usize = 5;

let expected_full_connections = NUM_FULL_NODES - 1 + NUM_LIGHT_NODES;
let expected_light_connections = NUM_FULL_NODES;
let expected_light_connections = NUM_FULL_NODES - 1 + NUM_LIGHT_NODES;

{
let temp = tempdir_with_prefix("substrate-connectivity-test");
Expand Down

0 comments on commit de30ac0

Please sign in to comment.