Skip to content

Commit

Permalink
tests: update error type from premature end of handshake
Browse files Browse the repository at this point in the history
rustls itself now generates an InvalidData error, which we
yield before we get to our own logic that generates UnexpectedEof.
  • Loading branch information
djc committed Apr 26, 2024
1 parent 7fd44d9 commit 5fc75d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/test_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async fn stream_handshake_regression_issues_77() -> io::Result<()> {
let r = stream.handshake(&mut cx);
assert_eq!(
r.map_err(|err| err.kind()),
Poll::Ready(Err(io::ErrorKind::UnexpectedEof))
Poll::Ready(Err(io::ErrorKind::InvalidData))
);

Ok(()) as io::Result<()>
Expand Down

0 comments on commit 5fc75d4

Please sign in to comment.