A lightweight WebAssembly runtime that is fast, secure, and standards-compliant
Add some debugging to a TCP test (#12890)
Alex Crichton63a6358c6361
diff --git a/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs b/crates/test-programs/src/bin/p3_sockets_tcp_streams.rsindex e01832980b..a8ed507f2e 100644--- a/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs+++ b/crates/test-programs/src/bin/p3_sockets_tcp_streams.rs@@ -102,7 +102,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)));+ assert!(+ matches!(result, Err(ErrorCode::ConnectionBroken)),+ "unexpected error {result:?}",+ );}).await;}