Skip to content

Commit

Permalink
Fix zenoh_session_multicast test
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Sep 15, 2023
1 parent 4ce2bd8 commit 59299bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zenoh/tests/session.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ async fn open_session_unicast(endpoints: &[&str]) -> (Session, Session) {
async fn open_session_multicast(endpoint01: &str, endpoint02: &str) -> (Session, Session) {
// Open the sessions
let mut config = config::peer();
config.connect.endpoints = vec![endpoint01.parse().unwrap()];
config.listen.endpoints = vec![endpoint01.parse().unwrap()];
config.scouting.multicast.set_enabled(Some(true)).unwrap();
println!("[ ][01a] Opening peer01 session: {}", endpoint01);
let peer01 = ztimeout!(zenoh::open(config).res_async()).unwrap();

let mut config = config::peer();
config.connect.endpoints = vec![endpoint02.parse().unwrap()];
config.listen.endpoints = vec![endpoint02.parse().unwrap()];
config.scouting.multicast.set_enabled(Some(true)).unwrap();
println!("[ ][02a] Opening peer02 session: {}", endpoint02);
let peer02 = ztimeout!(zenoh::open(config).res_async()).unwrap();
Expand Down

0 comments on commit 59299bd

Please sign in to comment.