| 328 | |
| 329 | #[tokio::test] |
| 330 | async fn test_stdio_transport_notify_after_close() { |
| 331 | let result = StdioTransport::spawn("cat", &[], &HashMap::new()).await; |
| 332 | if let Ok(transport) = result { |
| 333 | transport.close().await.unwrap(); |
| 334 | |
| 335 | let notification = JsonRpcNotification::new("test", None); |
| 336 | let result = transport.notify(notification).await; |
| 337 | assert!(result.is_err()); |
| 338 | assert!(result.unwrap_err().to_string().contains("not connected")); |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | #[test] |
| 343 | fn test_json_rpc_request_creation() { |