From 5fc75d496deb6333eb82a51be9ac43d5e334356c Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 26 Apr 2024 09:56:32 +0200 Subject: [PATCH] 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. --- src/common/test_stream.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/test_stream.rs b/src/common/test_stream.rs index 149c461d..9b9264ad 100644 --- a/src/common/test_stream.rs +++ b/src/common/test_stream.rs @@ -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<()>