[router] fix service discovery and mcp ut (#10449)

This commit is contained in:
Simo Lin
2025-09-15 00:07:23 -04:00
committed by GitHub
parent 0549f21c60
commit 7eccbe992d
4 changed files with 25 additions and 86 deletions

View File

@@ -584,8 +584,11 @@ mod tests {
use crate::routers::http::router::Router;
use crate::server::AppContext;
// Create a minimal RouterConfig for testing
let router_config = RouterConfig::default();
// Create a minimal RouterConfig for testing with very short timeout
let router_config = RouterConfig {
worker_startup_timeout_secs: 1,
..Default::default()
}; // Very short timeout for tests
// Create AppContext with minimal components
let app_context = Arc::new(AppContext {