()
| 718 | |
| 719 | #[tokio::test] |
| 720 | async fn test_async_response() { |
| 721 | let _guard = test::prepare().await; |
| 722 | |
| 723 | let bp = BasePayload { |
| 724 | transaction_id: 1234, |
| 725 | ..Default::default() |
| 726 | }; |
| 727 | |
| 728 | let b = vec![1, 2, 3, 4]; |
| 729 | handle_async_ans(&bp, &b).await.unwrap(); |
| 730 | |
| 731 | let rx = get_async_receiver(1234, Duration::from_millis(100)) |
| 732 | .await |
| 733 | .unwrap(); |
| 734 | |
| 735 | let rx_b = rx.await.unwrap(); |
| 736 | assert_eq!(b, rx_b); |
| 737 | } |
| 738 | } |
nothing calls this directly
no test coverage detected