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