Skip to content
This repository was archived by the owner on Oct 23, 2022. It is now read-only.

Commit 8f27c49

Browse files
committed
Improve docs wording and simplify test.
1 parent a1bc611 commit 8f27c49

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1878,11 +1878,8 @@ mod tests {
18781878
#[tokio::test]
18791879
async fn test_pubsub_send_and_receive() {
18801880
let alice = Node::new("alice").await;
1881-
let alice_addr: Multiaddr = "/ip4/127.0.0.1/tcp/10001".parse().unwrap();
1882-
alice.add_listening_address(alice_addr).await.unwrap();
18831881
let bob = Node::new("bob").await;
1884-
let bob_addr: Multiaddr = "/ip4/127.0.0.1/tcp/10002".parse().unwrap();
1885-
bob.add_listening_address(bob_addr.clone()).await.unwrap();
1882+
let bob_addr = bob.addrs_local().await.unwrap()[0].clone();
18861883

18871884
let topic = String::from("test_topic");
18881885
alice

0 commit comments

Comments
 (0)