Fix generic agent test fixture path collision

This commit is contained in:
GeekMr committed 2026-09-21 22:08:17 +08:00
1 parent d72221c4b8
commit 522b3381ef
1 file changed
+3 -2
@@ -197,8 +197,9 @@ mod tests {
executable(dir.path(), "agent");
executable(dir.path(), "cursor");
assert_eq!(find_executable(AgentKind::Cursor, &[dir.path().to_path_buf()]), None);
let cli = executable(dir.path(), "cursor-agent");
assert_eq!(find_executable(AgentKind::Cursor, &[dir.path().to_path_buf()]), Some(cli));
let cli_dir = tempfile::tempdir().unwrap();
let cli = executable(cli_dir.path(), "cursor-agent");
assert_eq!(find_executable(AgentKind::Cursor, &[cli_dir.path().to_path_buf()]), Some(cli));
}
#[test]