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

Function test_stdio_transport_default_timeout

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

Source from the content-addressed store, hash-verified

367
368 #[tokio::test]
369 async fn test_stdio_transport_default_timeout() {
370 let result = StdioTransport::spawn("cat", &[], &HashMap::new()).await;
371 if let Ok(transport) = result {
372 assert_eq!(transport.request_timeout_secs, DEFAULT_REQUEST_TIMEOUT_SECS);
373 let _ = transport.close().await;
374 }
375 }
376}

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected