We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 742365f commit 012534fCopy full SHA for 012534f
crates/chat-cli/src/util/directories.rs
@@ -343,7 +343,14 @@ mod tests {
343
let temp_dir = tempfile::TempDir::new().unwrap();
344
let os = create_test_os(&temp_dir).await;
345
346
- let agent_dir = agent_knowledge_dir(&os, "test-agent").unwrap();
+ // Create a test agent
347
+ let test_agent = crate::cli::Agent {
348
+ name: "test-agent".to_string(),
349
+ path: None,
350
+ ..Default::default()
351
+ };
352
+
353
+ let agent_dir = agent_knowledge_dir(&os, Some(&test_agent)).unwrap();
354
// The path will be transformed by chroot_path, so we need to get the actual home dir first
355
let home = home_dir(&os).unwrap();
356
let expected = home
0 commit comments