mirror of
https://github.com/telemt/telemt.git
synced 2026-06-20 02:00:09 +07:00
Middle Relay Cancellation Errors
This commit is contained in:
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user