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 } }