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

Function test_double_close

core/src/mcp/transport/streamable_http.rs:469–475  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

467
468 #[tokio::test]
469 async fn test_double_close() {
470 let transport = StreamableHttpTransport::connect("http://127.0.0.1:1", HashMap::new())
471 .await
472 .unwrap();
473 transport.close().await.unwrap();
474 transport.close().await.unwrap(); // must not panic
475 }
476
477 #[tokio::test]
478 async fn test_custom_timeout() {

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected