We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f484fd4 commit 95ddc4bCopy full SHA for 95ddc4b
tests/encode.rs
@@ -74,8 +74,11 @@ async fn dropping_encoder() -> http_types::Result<()> {
74
75
std::mem::drop(reader);
76
77
- assert!(matches!(sender.send("cat", "chashu", None).await,
78
- Err(e @ async_std::io::Error { .. })
79
- if e.kind() == async_std::io::ErrorKind::ConnectionAborted));
+ let response = sender.send("cat", "chashu", None).await;
+ assert!(response.is_err());
+ assert_eq!(
80
+ response.unwrap_err().kind(),
81
+ async_std::io::ErrorKind::ConnectionAborted
82
+ );
83
Ok(())
84
}
0 commit comments