()
| 357 | |
| 358 | #[tokio::test] |
| 359 | async fn test_stdio_transport_custom_timeout() { |
| 360 | // Spawn with a very short timeout (1 second) |
| 361 | let result = StdioTransport::spawn_with_timeout("cat", &[], &HashMap::new(), 1).await; |
| 362 | if let Ok(transport) = result { |
| 363 | assert_eq!(transport.request_timeout_secs, 1); |
| 364 | let _ = transport.close().await; |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | #[tokio::test] |
| 369 | async fn test_stdio_transport_default_timeout() { |