fix: restore #[test] and #[should_panic] attributes on panics_on_duplicate_agent_names

Lost in commit db00a5d4 when extracting tests from main.rs into cli.rs;
the line range used for the panics_on_duplicate_agent_names test in main.rs
started at the fn signature instead of the attribute line.
This commit is contained in:
dave
2026-04-26 22:01:06 +00:00
parent 0e09a1ed4b
commit 0d805313d6
+2
View File
@@ -872,6 +872,8 @@ async fn main() -> Result<(), std::io::Error> {
mod tests { mod tests {
use super::*; use super::*;
#[test]
#[should_panic(expected = "Invalid project.toml: Duplicate agent name")]
fn panics_on_duplicate_agent_names() { fn panics_on_duplicate_agent_names() {
let tmp = tempfile::tempdir().unwrap(); let tmp = tempfile::tempdir().unwrap();
let sk = tmp.path().join(".huskies"); let sk = tmp.path().join(".huskies");