Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Allow another error in `p3_sockets_tcp_streams` test (#12927)

Alex Crichton96b47c7d4e17
diff --git a/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs b/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs
index a8ed507f2e..9bb87bc6ea 100644
--- a/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs
+++ b/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs
@@ -103,7 +103,10 @@ async fn test_tcp_send_drops_stream_when_remote_shutdown(family: IpAddressFamily
let result = client.send_result.await;
assert!(
- matches!(result, Err(ErrorCode::ConnectionBroken)),
+ matches!(
+ result,
+ Err(ErrorCode::ConnectionBroken | ErrorCode::ConnectionReset)
+ ),
"unexpected error {result:?}",
);
})