Network tests moved to a tests directory (#7583)
This commit is contained in:
parent
36ba004c29
commit
ee1da09996
@ -107,9 +107,6 @@ mod stats;
|
|||||||
mod ip_utils;
|
mod ip_utils;
|
||||||
mod connection_filter;
|
mod connection_filter;
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests;
|
|
||||||
|
|
||||||
pub use host::{HostInfo, PeerId, PacketId, ProtocolId, NetworkContext, NetworkIoMessage, NetworkConfiguration};
|
pub use host::{HostInfo, PeerId, PacketId, ProtocolId, NetworkContext, NetworkIoMessage, NetworkConfiguration};
|
||||||
pub use service::NetworkService;
|
pub use service::NetworkService;
|
||||||
pub use error::{Error, ErrorKind};
|
pub use error::{Error, ErrorKind};
|
||||||
|
@ -14,15 +14,24 @@
|
|||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
|
// 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::atomic::{AtomicBool, Ordering as AtomicOrdering};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::*;
|
use std::time::*;
|
||||||
use parking_lot::Mutex;
|
use parking_lot::Mutex;
|
||||||
use ethcore_bytes::Bytes;
|
use ethcore_bytes::Bytes;
|
||||||
use io::TimerToken;
|
use ethcore_network::*;
|
||||||
use ethkey::{Random, Generator};
|
use ethkey::{Random, Generator};
|
||||||
|
use io::TimerToken;
|
||||||
|
|
||||||
pub struct TestProtocol {
|
pub struct TestProtocol {
|
||||||
drop_session: bool,
|
drop_session: bool,
|
Loading…
Reference in New Issue
Block a user