From 4daefb96a15c2c6e1bbf2811ef2bbe7b982cb8c2 Mon Sep 17 00:00:00 2001 From: Luca Cominardi Date: Wed, 22 Nov 2023 17:00:56 +0100 Subject: [PATCH] Disable scouting in zenoh_liveness tests --- zenoh/tests/liveliness.rs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/zenoh/tests/liveliness.rs b/zenoh/tests/liveliness.rs index f719fce3eb..96cca533df 100644 --- a/zenoh/tests/liveliness.rs +++ b/zenoh/tests/liveliness.rs @@ -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()