Skip to content

Commit bb79166

Browse files
fix: Fix tests (#3260)
Co-authored-by: Kenneth S. <[email protected]>
1 parent 711c5af commit bb79166

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ use tracing::{
3939
info,
4040
warn,
4141
};
42-
use walkdir;
4342
use wrapper_types::ResourcePath;
4443
pub use wrapper_types::{
4544
OriginalToolName,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ mod tests {
15541554
let agents = {
15551555
let mut agents = Agents::default();
15561556
let mut agent = Agent::default();
1557+
agent.name = "TestAgent".to_string();
15571558
agent.resources.push(AMAZONQ_FILENAME.into());
15581559
agent.resources.push(AGENTS_FILENAME.into());
15591560
agents.agents.insert("TestAgent".to_string(), agent);

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

Lines changed: 2 additions & 2 deletions
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").expect("Failed to switch agent");
4338+
agents.switch("TestAgent", &os).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"))
@@ -4469,7 +4469,7 @@ mod tests {
44694469
..Default::default()
44704470
};
44714471
agents.agents.insert("SecurityAgent".to_string(), agent);
4472-
agents.switch("SecurityAgent").expect("Failed to switch agent");
4472+
agents.switch("SecurityAgent", &os).expect("Failed to switch agent");
44734473

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

0 commit comments

Comments
 (0)