()
| 276 | |
| 277 | #[tokio::test] |
| 278 | async fn test_stdio_transport_close_disconnects() { |
| 279 | let result = StdioTransport::spawn("cat", &[], &HashMap::new()).await; |
| 280 | if let Ok(transport) = result { |
| 281 | assert!(transport.is_connected()); |
| 282 | transport.close().await.unwrap(); |
| 283 | assert!(!transport.is_connected()); |
| 284 | } |
| 285 | } |
| 286 | |
| 287 | #[tokio::test] |
| 288 | async fn test_stdio_transport_spawn_with_args() { |