Skip to content

Commit

Permalink
Disable scouting in zenoh_liveness tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Mallets committed Nov 22, 2023
1 parent c0a19d1 commit 4daefb9
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions zenoh/tests/liveliness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,18 @@ fn zenoh_liveliness() {
task::block_on(async {
zasync_executor_init!();

let session1 = ztimeout!(zenoh::open(config::peer()).res_async()).unwrap();

let session2 = ztimeout!(zenoh::open(config::peer()).res_async()).unwrap();
let mut c1 = config::peer();
c1.listen
.set_endpoints(vec!["tcp/localhost:47447".parse().unwrap()])
.unwrap();
c1.scouting.multicast.set_enabled(Some(false)).unwrap();
let session1 = ztimeout!(zenoh::open(c1).res_async()).unwrap();
let mut c2 = config::peer();
c2.connect
.set_endpoints(vec!["tcp/localhost:47447".parse().unwrap()])
.unwrap();
c2.scouting.multicast.set_enabled(Some(false)).unwrap();
let session2 = ztimeout!(zenoh::open(c2).res_async()).unwrap();

let replies = ztimeout!(session2
.liveliness()
Expand Down

0 comments on commit 4daefb9

Please sign in to comment.