test(config): fix helper lint and swarms fixture

This commit is contained in:
李龙 0668001470 2026-03-16 17:56:10 +08:00 committed by Roman Tataurov
parent d23abdb92d
commit 496bd825bc
No known key found for this signature in database
GPG Key ID: 70A51EF3185C334B

View File

@ -8273,7 +8273,9 @@ mod tests {
if !merged.is_empty() {
merged.push_str("\n\n");
}
merged.push_str(&format!("[{table}]"));
merged.push('[');
merged.push_str(table);
merged.push(']');
}
merged.push('\n');
toml::from_str(&merged).unwrap()
@ -11888,7 +11890,7 @@ require_otp_to_resume = true
agents = ["researcher", "writer"]
strategy = "sequential"
"#;
let config: Config = toml::from_str(toml_str).expect("deserialize");
let config = parse_test_config(toml_str);
assert_eq!(config.agents.len(), 2);
assert_eq!(config.swarms.len(), 1);
assert!(config.swarms.contains_key("pipeline"));