Skip to content

Commit

Permalink
do not use Linux Ephemeral ports in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowhatter committed Sep 26, 2024
1 parent 965e905 commit 5962138
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions zenoh/tests/interceptors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ fn downsampling_test<F>(

fn downsampling_by_keyexpr_impl(flow: InterceptorFlow) {
let ke_prefix = "test/downsamples_by_keyexp";
let locator = "tcp/127.0.0.1:38446";
let locator = "tcp/127.0.0.1:31446";

let ke_10hz: KeyExpr = format!("{ke_prefix}/10hz").try_into().unwrap();
let ke_20hz: KeyExpr = format!("{ke_prefix}/20hz").try_into().unwrap();
Expand Down Expand Up @@ -198,7 +198,7 @@ fn downsampling_by_keyexpr() {
#[cfg(unix)]
fn downsampling_by_interface_impl(flow: InterceptorFlow) {
let ke_prefix = "test/downsamples_by_interface";
let locator = "tcp/127.0.0.1:38447";
let locator = "tcp/127.0.0.1:31447";

let ke_10hz: KeyExpr = format!("{ke_prefix}/10hz").try_into().unwrap();
let ke_no_effect: KeyExpr = format!("{ke_prefix}/no_effect").try_into().unwrap();
Expand Down
8 changes: 4 additions & 4 deletions zenoh/tests/unicity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async fn open_router_session() -> Session {
config
.listen
.endpoints
.set(vec!["tcp/127.0.0.1:37447".parse().unwrap()])
.set(vec!["tcp/127.0.0.1:30447".parse().unwrap()])
.unwrap();
config.scouting.multicast.set_enabled(Some(false)).unwrap();
println!("[ ][00a] Opening router session");
Expand All @@ -100,7 +100,7 @@ async fn open_client_sessions() -> (Session, Session, Session) {
config.set_mode(Some(WhatAmI::Client)).unwrap();
config
.connect
.set_endpoints(ModeDependentValue::Unique(vec!["tcp/127.0.0.1:37447"
.set_endpoints(ModeDependentValue::Unique(vec!["tcp/127.0.0.1:30447"
.parse::<EndPoint>()
.unwrap()]))
.unwrap();
Expand All @@ -111,7 +111,7 @@ async fn open_client_sessions() -> (Session, Session, Session) {
config.set_mode(Some(WhatAmI::Client)).unwrap();
config
.connect
.set_endpoints(ModeDependentValue::Unique(vec!["tcp/127.0.0.1:37447"
.set_endpoints(ModeDependentValue::Unique(vec!["tcp/127.0.0.1:30447"
.parse::<EndPoint>()
.unwrap()]))
.unwrap();
Expand All @@ -122,7 +122,7 @@ async fn open_client_sessions() -> (Session, Session, Session) {
config.set_mode(Some(WhatAmI::Client)).unwrap();
config
.connect
.set_endpoints(ModeDependentValue::Unique(vec!["tcp/127.0.0.1:37447"
.set_endpoints(ModeDependentValue::Unique(vec!["tcp/127.0.0.1:30447"
.parse::<EndPoint>()
.unwrap()]))
.unwrap();
Expand Down

0 comments on commit 5962138

Please sign in to comment.