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

Commit

Permalink
Improve docs wording and simplify test.
Browse files Browse the repository at this point in the history
  • Loading branch information
cobward committed Feb 28, 2022
1 parent a1bc611 commit 8f27c49
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1878,11 +1878,8 @@ mod tests {
#[tokio::test]
async fn test_pubsub_send_and_receive() {
let alice = Node::new("alice").await;
let alice_addr: Multiaddr = "/ip4/127.0.0.1/tcp/10001".parse().unwrap();
alice.add_listening_address(alice_addr).await.unwrap();
let bob = Node::new("bob").await;
let bob_addr: Multiaddr = "/ip4/127.0.0.1/tcp/10002".parse().unwrap();
bob.add_listening_address(bob_addr.clone()).await.unwrap();
let bob_addr = bob.addrs_local().await.unwrap()[0].clone();

let topic = String::from("test_topic");
alice
Expand Down

0 comments on commit 8f27c49

Please sign in to comment.