From cabccf9ef59d7f83d74009be0dce8ee902de74a9 Mon Sep 17 00:00:00 2001 From: arkpar Date: Sat, 19 Mar 2016 22:19:59 +0100 Subject: [PATCH] Test URL logged --- util/src/network/ip_utils.rs | 1 + util/src/network/tests.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/util/src/network/ip_utils.rs b/util/src/network/ip_utils.rs index b37a47064..27ff29737 100644 --- a/util/src/network/ip_utils.rs +++ b/util/src/network/ip_utils.rs @@ -208,6 +208,7 @@ fn can_select_public_address() { assert!(pub_address.port() == 40477); } +#[ignore] #[test] fn can_map_external_address_or_fail() { let pub_address = select_public_address(40478); diff --git a/util/src/network/tests.rs b/util/src/network/tests.rs index 0493475ce..8df3b4028 100644 --- a/util/src/network/tests.rs +++ b/util/src/network/tests.rs @@ -103,12 +103,14 @@ fn net_service() { #[test] fn net_connect() { + ::log::init_log(); let key1 = KeyPair::create().unwrap(); let mut config1 = NetworkConfiguration::new_local(); config1.use_secret = Some(key1.secret().clone()); config1.boot_nodes = vec![ ]; let mut service1 = NetworkService::::start(config1).unwrap(); let mut config2 = NetworkConfiguration::new_local(); + info!("net_connect: local URL: {}", service1.local_url()); config2.boot_nodes = vec![ service1.local_url() ]; let mut service2 = NetworkService::::start(config2).unwrap(); let handler1 = TestProtocol::register(&mut service1, false);