From 0d805313d6778f99f37bdeecfc41a52d00a63d72 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 26 Apr 2026 22:01:06 +0000 Subject: [PATCH] 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. --- server/src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/src/main.rs b/server/src/main.rs index 8e746bae..3993bf6d 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -872,6 +872,8 @@ async fn main() -> Result<(), std::io::Error> { mod tests { use super::*; + #[test] + #[should_panic(expected = "Invalid project.toml: Duplicate agent name")] fn panics_on_duplicate_agent_names() { let tmp = tempfile::tempdir().unwrap(); let sk = tmp.path().join(".huskies");