Skip to content

Navigation Menu

Sign in
Sign up

test(relay): make mesh demo test use production's directory lease #7402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rebekz wants to merge 1 commit into block:main
base: main
Choose a base branch
Loading
from kafi-labs:upstream-fix/mesh-demo-production-lease
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions crates/buzz-relay/src/api/mesh_demo.rs
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand All @@ -173,10 +171,9 @@ mod tests {
.query_async::<String>(&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;
Expand Down

AltStyle によって変換されたページ (->オリジナル) /