[ethcore]: move client test types to test-helpers (#11062)

This commit is contained in:
Niklas Adolfsson
2019-09-17 16:42:22 +02:00
committed by Andrew Jones
parent acad59b300
commit b6415c6196
38 changed files with 65 additions and 69 deletions

View File

@@ -801,11 +801,11 @@ impl SyncHandler {
#[cfg(test)]
mod tests {
use client_traits::ChainInfo;
use ethcore::client::{EachBlockWith, TestBlockChainClient};
use ethcore::test_helpers::{EachBlockWith, TestBlockChainClient};
use parking_lot::RwLock;
use rlp::Rlp;
use std::collections::{VecDeque};
use tests::helpers::{TestIo};
use std::collections::VecDeque;
use tests::helpers::TestIo;
use tests::snapshot::TestSnapshotService;
use super::*;

View File

@@ -1408,7 +1408,7 @@ pub mod tests {
use std::collections::{VecDeque};
use ethkey;
use network::PeerId;
use tests::helpers::{TestIo};
use tests::helpers::TestIo;
use tests::snapshot::TestSnapshotService;
use ethereum_types::{H256, U256, Address};
use parking_lot::RwLock;
@@ -1417,7 +1417,7 @@ pub mod tests {
use super::*;
use ::SyncConfig;
use super::{PeerInfo, PeerAsking};
use ethcore::client::{EachBlockWith, TestBlockChainClient};
use ethcore::test_helpers::{EachBlockWith, TestBlockChainClient};
use client_traits::{BlockInfo, BlockChainClient, ChainInfo};
use ethcore::miner::{MinerService, PendingOrdering};
use types::header::Header;

View File

@@ -336,7 +336,7 @@ impl SyncPropagator {
#[cfg(test)]
mod tests {
use client_traits::{BlockInfo, ChainInfo};
use ethcore::client::{EachBlockWith, TestBlockChainClient};
use ethcore::test_helpers::{EachBlockWith, TestBlockChainClient};
use parking_lot::RwLock;
use rlp::Rlp;
use std::collections::VecDeque;

View File

@@ -394,17 +394,17 @@ impl SyncSupplier {
#[cfg(test)]
mod test {
use std::collections::{VecDeque};
use tests::helpers::{TestIo};
use std::collections::VecDeque;
use tests::helpers::TestIo;
use tests::snapshot::TestSnapshotService;
use ethereum_types::{H256};
use ethereum_types::H256;
use parking_lot::RwLock;
use bytes::Bytes;
use rlp::{Rlp, RlpStream};
use super::{*, super::tests::*};
use blocks::SyncHeader;
use client_traits::BlockChainClient;
use ethcore::client::{EachBlockWith, TestBlockChainClient};
use ethcore::test_helpers::{EachBlockWith, TestBlockChainClient};
use std::str::FromStr;
#[test]