mirror of
https://github.com/logos-messaging/logos-messaging-rust-bindings.git
synced 2026-01-09 01:13:12 +00:00
Fix tests
This commit is contained in:
parent
fa2f7c5968
commit
412e742eaf
@ -162,7 +162,7 @@ async fn discv5_echo() -> Result<(), String> {
|
|||||||
for node_address in NODES {
|
for node_address in NODES {
|
||||||
let address: Multiaddr = node_address.parse().unwrap();
|
let address: Multiaddr = node_address.parse().unwrap();
|
||||||
let peer_id = node.add_peer(&address, ProtocolId::Relay)?;
|
let peer_id = node.add_peer(&address, ProtocolId::Relay)?;
|
||||||
node.connect_peer_with_id(peer_id, None)?;
|
node.connect_peer_with_id(&peer_id, None)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert!(node.peers()?.len() >= NODES.len());
|
assert!(node.peers()?.len() >= NODES.len());
|
||||||
@ -213,7 +213,7 @@ async fn default_echo() -> Result<(), String> {
|
|||||||
for node_address in NODES {
|
for node_address in NODES {
|
||||||
let address: Multiaddr = node_address.parse().unwrap();
|
let address: Multiaddr = node_address.parse().unwrap();
|
||||||
let peer_id = node.add_peer(&address, ProtocolId::Relay)?;
|
let peer_id = node.add_peer(&address, ProtocolId::Relay)?;
|
||||||
node.connect_peer_with_id(peer_id, None)?;
|
node.connect_peer_with_id(&peer_id, None)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
assert!(node.peers()?.len() >= NODES.len());
|
assert!(node.peers()?.len() >= NODES.len());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user