Skip to content

Commit 5fc75d4

Browse files
committed
tests: update error type from premature end of handshake
rustls itself now generates an InvalidData error, which we yield before we get to our own logic that generates UnexpectedEof.
1 parent 7fd44d9 commit 5fc75d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/test_stream.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ async fn stream_handshake_regression_issues_77() -> io::Result<()> {
264264
let r = stream.handshake(&mut cx);
265265
assert_eq!(
266266
r.map_err(|err| err.kind()),
267-
Poll::Ready(Err(io::ErrorKind::UnexpectedEof))
267+
Poll::Ready(Err(io::ErrorKind::InvalidData))
268268
);
269269

270270
Ok(()) as io::Result<()>

0 commit comments

Comments
 (0)