MCPcopy Create free account
hub / github.com/AI45Lab/Code / test_stdio_transport_custom_timeout

Function test_stdio_transport_custom_timeout

core/src/mcp/transport/stdio.rs:359–366  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected