Avoid debug bound in stream error witness
This commit is contained in:
parent
b2c0f8dd6b
commit
f9cfa35505
1 changed files with 6 additions and 6 deletions
|
|
@ -1237,8 +1237,8 @@ mod tests {
|
||||||
fn responses_stream_classifies_read_failures_without_exposing_io_details() {
|
fn responses_stream_classifies_read_failures_without_exposing_io_details() {
|
||||||
for kind in [io::ErrorKind::TimedOut, io::ErrorKind::WouldBlock] {
|
for kind in [io::ErrorKind::TimedOut, io::ErrorKind::WouldBlock] {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_responses_sse(FailingReader(kind)).unwrap_err(),
|
parse_responses_sse(FailingReader(kind)).err(),
|
||||||
"provider SSE read timed out"
|
Some("provider SSE read timed out")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
for kind in [
|
for kind in [
|
||||||
|
|
@ -1249,13 +1249,13 @@ mod tests {
|
||||||
io::ErrorKind::UnexpectedEof,
|
io::ErrorKind::UnexpectedEof,
|
||||||
] {
|
] {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_responses_sse(FailingReader(kind)).unwrap_err(),
|
parse_responses_sse(FailingReader(kind)).err(),
|
||||||
"provider SSE connection closed unexpectedly"
|
Some("provider SSE connection closed unexpectedly")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
parse_responses_sse(FailingReader(io::ErrorKind::Other)).unwrap_err(),
|
parse_responses_sse(FailingReader(io::ErrorKind::Other)).err(),
|
||||||
"provider SSE read failed"
|
Some("provider SSE read failed")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue