Merge pull request 'fix(rust): drop the stray spaces in the running-server handoff line' (#34) from fix/rust-handoff-spaces into main
Reviewed-on: #34 Reviewed-by: Colby Whitlock <whitlocktech@gmail.com>
This commit is contained in:
@@ -185,7 +185,7 @@ pub fn handoff(
|
|||||||
protocol = doc.protocol,
|
protocol = doc.protocol,
|
||||||
when = if running {
|
when = if running {
|
||||||
format!(
|
format!(
|
||||||
"The plugin loads now; `doctor --game rust --server-id {server_id}` confirms it connected."
|
"The plugin loads now; `doctor --game rust --server-id {server_id}` confirms it connected."
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
"The plugin connects when the server next starts.".to_string()
|
"The plugin connects when the server next starts.".to_string()
|
||||||
@@ -265,6 +265,16 @@ mod tests {
|
|||||||
running.contains("doctor --game rust --server-id alpha"),
|
running.contains("doctor --game rust --server-id alpha"),
|
||||||
"{running}"
|
"{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]
|
#[test]
|
||||||
|
|||||||
Reference in New Issue
Block a user