From 278238cf683148bdcaa0c2acfaa9f841fc55b5a9 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 05:33:00 +0100 Subject: [PATCH] cultmesh-rs tests: say what the interop peer said when it dies early Co-Authored-By: Claude Sonnet 5.5 --- packages/cultmesh-rs/tests/rudp_subscription.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cultmesh-rs/tests/rudp_subscription.rs b/packages/cultmesh-rs/tests/rudp_subscription.rs index a4ad57f8..718271d0 100644 --- a/packages/cultmesh-rs/tests/rudp_subscription.rs +++ b/packages/cultmesh-rs/tests/rudp_subscription.rs @@ -506,11 +506,13 @@ impl Csharp { } let mut child = command.stdin(Stdio::piped()).stdout(Stdio::piped()).spawn().expect("dotnet runs the interop peer"); let mut lines = BufReader::new(child.stdout.take().unwrap()).lines(); + let mut said = Vec::new(); let port = loop { - let line = lines.next().expect("the peer announces its port").unwrap(); + let line = lines.next().unwrap_or_else(|| panic!("the peer ended without announcing its port; it said {said:?}")).unwrap(); if let Some(rest) = line.strip_prefix("listening ") { break rest.trim().parse::().unwrap(); } + said.push(line); }; Self { child, port } }