Middle Relay Cancellation Errors

This commit is contained in:
Alexey
2026-05-10 14:12:15 +03:00
parent 900b574fb8
commit 10c7cb2e0c
3 changed files with 15 additions and 6 deletions
@@ -251,7 +251,7 @@ async fn me_writer_data_write_obeys_flow_cancellation() {
.await;
assert!(
matches!(result, Err(ProxyError::Proxy(ref message)) if message == "ME client writer cancelled"),
matches!(result, Err(ProxyError::MiddleClientWriterCancelled)),
"cancelled middle writer must return a bounded cancellation error"
);
assert_eq!(