From 9d73367e6329d02ffd15548c51e5c14f75ed356d Mon Sep 17 00:00:00 2001 From: wtclaude Date: Sat, 26 Sep 2026 10:14:22 -0500 Subject: [PATCH] test(rust): pin the running-server handoff line whole The existing assertions checked fragments ("doctor --game rust --server-id alpha"), which the stray-space version also contained. The whole first line is now compared, so a wrapped source line cannot put its indent back into the sentence. Fails against the pre-fix literal. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY --- src/rustgame/sidecar.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/rustgame/sidecar.rs b/src/rustgame/sidecar.rs index bf61636..b5a252d 100644 --- a/src/rustgame/sidecar.rs +++ b/src/rustgame/sidecar.rs @@ -265,6 +265,16 @@ mod tests { running.contains("doctor --game rust --server-id alpha"), "{running}" ); + // The whole first line, so a wrapped source line cannot leave its indent in the sentence + // again (installer#34: "confirms it connected."). + assert_eq!( + running.lines().find(|l| !l.is_empty()), + Some( + "Rust server \"alpha\" is set up. The plugin loads now; \ + `doctor --game rust --server-id alpha` confirms it connected." + ), + "{running}" + ); } #[test]