huskies: merge 546_refactor_rename_bot_test_command_to_run_tests_to_avoid_eating_chat_messages

This commit is contained in:
dave
2026-04-12 13:06:47 +00:00
parent b4dbfcbde6
commit 6b1737d52d
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -138,7 +138,7 @@ pub fn commands() -> &'static [BotCommand] {
handler: coverage::handle_coverage, handler: coverage::handle_coverage,
}, },
BotCommand { BotCommand {
name: "test", name: "run_tests",
description: "Run the project's test suite (`script/test`) and show pass/fail with output", description: "Run the project's test suite (`script/test`) and show pass/fail with output",
handler: run_tests::handle_test, handler: run_tests::handle_test,
}, },
+6 -6
View File
@@ -137,8 +137,8 @@ mod tests {
#[test] #[test]
fn test_command_is_registered() { fn test_command_is_registered() {
use super::super::commands; use super::super::commands;
let found = commands().iter().any(|c| c.name == "test"); let found = commands().iter().any(|c| c.name == "run_tests");
assert!(found, "test command must be in the registry"); assert!(found, "run_tests command must be in the registry");
} }
#[test] #[test]
@@ -150,8 +150,8 @@ mod tests {
); );
let output = result.unwrap(); let output = result.unwrap();
assert!( assert!(
output.contains("test"), output.contains("run_tests"),
"help should list test command: {output}" "help should list run_tests command: {output}"
); );
} }
@@ -216,10 +216,10 @@ mod tests {
ambient_rooms: &ambient, ambient_rooms: &ambient,
room_id: &room_id, room_id: &room_id,
}; };
let result = super::super::try_handle_command(&dispatch, "@timmy test"); let result = super::super::try_handle_command(&dispatch, "@timmy run_tests");
assert!( assert!(
result.is_some(), result.is_some(),
"test command must respond via dispatch (not fall through to LLM)" "run_tests command must respond via dispatch (not fall through to LLM)"
); );
} }