Skip to content

Commit 63a6358

Browse files
authored
Add some debugging to a TCP test (#12890)
Attempting to help diagnose the spurious failure that cropped up in #12864. Closes #12864
1 parent 56cae56 commit 63a6358

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/test-programs/src/bin/p3_sockets_tcp_streams.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ async fn test_tcp_send_drops_stream_when_remote_shutdown(family: IpAddressFamily
102102
}
103103

104104
let result = client.send_result.await;
105-
assert!(matches!(result, Err(ErrorCode::ConnectionBroken)));
105+
assert!(
106+
matches!(result, Err(ErrorCode::ConnectionBroken)),
107+
"unexpected error {result:?}",
108+
);
106109
})
107110
.await;
108111
}

0 commit comments

Comments
 (0)