From 9d5c890d6ca2e50edd6e33626c3e742ecf116124 Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Thu, 16 Apr 2020 15:15:05 +0200 Subject: [PATCH 1/2] Fix network tests --- network/test/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/test/src/lib.rs b/network/test/src/lib.rs index 2c3637cb0893..bdb7eecb10b4 100644 --- a/network/test/src/lib.rs +++ b/network/test/src/lib.rs @@ -574,7 +574,7 @@ pub trait TestNetFactory: Sized { "test-node", "test-client", Default::default(), - &std::env::current_dir().expect("current directory must exist"), + Some(std::env::current_dir().expect("current directory must exist")), ); network_config.listen_addresses = vec![listen_addr.clone()]; network_config.transport = TransportConfig::MemoryOnly; @@ -649,7 +649,7 @@ pub trait TestNetFactory: Sized { "test-node", "test-client", Default::default(), - &std::env::current_dir().expect("current directory must exist"), + Some(std::env::current_dir().expect("current directory must exist")), ); network_config.listen_addresses = vec![listen_addr.clone()]; network_config.transport = TransportConfig::MemoryOnly; From 016075173d56f6985198ca13f72682bf85fe6268 Mon Sep 17 00:00:00 2001 From: Ashley Ruglys Date: Thu, 16 Apr 2020 15:26:21 +0200 Subject: [PATCH 2/2] Use None as the network config path --- network/test/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network/test/src/lib.rs b/network/test/src/lib.rs index bdb7eecb10b4..36bdda0ba4d6 100644 --- a/network/test/src/lib.rs +++ b/network/test/src/lib.rs @@ -574,7 +574,7 @@ pub trait TestNetFactory: Sized { "test-node", "test-client", Default::default(), - Some(std::env::current_dir().expect("current directory must exist")), + None, ); network_config.listen_addresses = vec![listen_addr.clone()]; network_config.transport = TransportConfig::MemoryOnly; @@ -649,7 +649,7 @@ pub trait TestNetFactory: Sized { "test-node", "test-client", Default::default(), - Some(std::env::current_dir().expect("current directory must exist")), + None, ); network_config.listen_addresses = vec![listen_addr.clone()]; network_config.transport = TransportConfig::MemoryOnly;