From eed88df0d4404bcd7dd3e44d7e70619aa31d4e5e Mon Sep 17 00:00:00 2001 From: arkpar Date: Mon, 25 Jan 2016 13:22:29 +0100 Subject: [PATCH] Fixed tests compilation --- util/src/network/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/src/network/tests.rs b/util/src/network/tests.rs index 7b0870532..06966abb5 100644 --- a/util/src/network/tests.rs +++ b/util/src/network/tests.rs @@ -78,9 +78,9 @@ fn test_net_connect() { let key1 = KeyPair::create().unwrap(); let mut config1 = NetworkConfiguration::new_with_port(30344); config1.use_secret = Some(key1.secret().clone()); - config1.boot_nodes = Some(vec![ ]); + config1.boot_nodes = vec![ ]; let mut config2 = NetworkConfiguration::new_with_port(30345); - config2.boot_nodes = Some(vec![ format!("enode://{}@127.0.0.1:30344", key1.public().hex()) ]); + config2.boot_nodes = vec![ format!("enode://{}@127.0.0.1:30344", key1.public().hex()) ]; let mut service1 = NetworkService::::start(config1).unwrap(); let mut service2 = NetworkService::::start(config2).unwrap(); let handler1 = TestProtocol::register(&mut service1);