From 54fd3ba988a441b46ae74bfd98aa33ae45d982df Mon Sep 17 00:00:00 2001 From: Fitra Kacamarga Date: Fri, 4 Sep 2026 19:05:18 +0700 Subject: [PATCH] test(relay): match mesh demo production lease Stabilize the upstream test from ccb021d713/#1670 by using the same 30-second SessionDirectory default as production instead of a 5-second lease shorter than the 10-second echo timeout. Signed-off-by: Fitra Kacamarga --- crates/buzz-relay/src/api/mesh_demo.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/crates/buzz-relay/src/api/mesh_demo.rs b/crates/buzz-relay/src/api/mesh_demo.rs index 8649b97671a..13e324f6107 100644 --- a/crates/buzz-relay/src/api/mesh_demo.rs +++ b/crates/buzz-relay/src/api/mesh_demo.rs @@ -146,8 +146,6 @@ fn echo_error(status: StatusCode, what: &str, e: &ReliableStreamError) -> Respon #[cfg(test)] mod tests { - use std::time::Duration; - use axum::body::to_bytes; use buzz_relay_mesh::endpoint::MeshEndpoint; use buzz_relay_mesh::{ @@ -173,10 +171,9 @@ mod tests { .query_async::(&mut *conn) .await .ok()?; - Some(SessionDirectory::with_lease_ttl( - pool, - Duration::from_secs(5), - )) + // Match the production mesh handle's 30-second directory lease. The + // demo join intentionally does not renew, and its echo timeout is 10s. + Some(SessionDirectory::new(pool)) } struct NoopTransport;