mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-22 06:14:38 +00:00
Fix tests
This commit is contained in:
@@ -86,9 +86,14 @@ pub fn build_libp2p_instance(
|
||||
let port = unused_port("tcp").unwrap();
|
||||
let config = build_config(port, boot_nodes, secret_key);
|
||||
// launch libp2p service
|
||||
LibP2PService::new(&config, EnrForkId::default(), &log)
|
||||
.expect("should build libp2p instance")
|
||||
.1
|
||||
LibP2PService::new(
|
||||
tokio::runtime::Handle::current(),
|
||||
&config,
|
||||
EnrForkId::default(),
|
||||
&log,
|
||||
)
|
||||
.expect("should build libp2p instance")
|
||||
.1
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
||||
@@ -136,9 +136,14 @@ async fn test_secio_noise_fallback() {
|
||||
|
||||
let port = common::unused_port("tcp").unwrap();
|
||||
let noisy_config = common::build_config(port, vec![], None);
|
||||
let mut noisy_node = Service::new(&noisy_config, EnrForkId::default(), &log)
|
||||
.expect("should build a libp2p instance")
|
||||
.1;
|
||||
let mut noisy_node = Service::new(
|
||||
tokio::runtime::Handle::current(),
|
||||
&noisy_config,
|
||||
EnrForkId::default(),
|
||||
&log,
|
||||
)
|
||||
.expect("should build a libp2p instance")
|
||||
.1;
|
||||
|
||||
let port = common::unused_port("tcp").unwrap();
|
||||
let secio_config = common::build_config(port, vec![common::get_enr(&noisy_node)], None);
|
||||
|
||||
Reference in New Issue
Block a user