Network tests moved to a tests directory (#7583)

This commit is contained in:
Marek Kotewicz 2018-01-17 10:36:12 +01:00 committed by GitHub
parent 36ba004c29
commit ee1da09996
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -107,9 +107,6 @@ mod stats;
mod ip_utils;
mod connection_filter;
#[cfg(test)]
mod tests;
pub use host::{HostInfo, PeerId, PacketId, ProtocolId, NetworkContext, NetworkIoMessage, NetworkConfiguration};
pub use service::NetworkService;
pub use error::{Error, ErrorKind};

View File

@ -14,15 +14,24 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
use super::*;
#[macro_use]
extern crate log;
extern crate parking_lot;
extern crate ethcore_bytes;
extern crate ethcore_io as io;
extern crate ethcore_logger;
extern crate ethcore_network;
extern crate ethkey;
use std::sync::atomic::{AtomicBool, Ordering as AtomicOrdering};
use std::sync::Arc;
use std::thread;
use std::time::*;
use parking_lot::Mutex;
use ethcore_bytes::Bytes;
use io::TimerToken;
use ethcore_network::*;
use ethkey::{Random, Generator};
use io::TimerToken;
pub struct TestProtocol {
drop_session: bool,