[router] fix service discovery and mcp ut (#10449)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user