Skip to content

Commit 409c520

Browse files
authored
Fix tests - Update Agent Switch arguments
Recent refactor changed switch method of Agent, however tests were not updated. Fixing them
1 parent 8e0688c commit 409c520

File tree

1 file changed

+1
-1
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+1
-1
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4335,7 +4335,7 @@ mod tests {
43354335
..Default::default()
43364336
};
43374337
agents.agents.insert("TestAgent".to_string(), agent);
4338-
agents.switch("TestAgent", &os).expect("Failed to switch agent");
4338+
agents.switch("TestAgent").expect("Failed to switch agent");
43394339

43404340
let tool_manager = ToolManager::default();
43414341
let tool_config = serde_json::from_str::<HashMap<String, ToolSpec>>(include_str!("tools/tool_index.json"))

0 commit comments

Comments
 (0)