test(rust): pin the running-server handoff line whole
All checks were successful
PR Checks / rust-gates (pull_request) Successful in 1m0s
All checks were successful
PR Checks / rust-gates (pull_request) Successful in 1m0s
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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user