Skip to content

Commit 6e58fae

Browse files
chore: remove agent file check in test
Now agent detection is only done by looking at PATH Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com>
1 parent 00655fb commit 6e58fae

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

src/setup/mod.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4208,20 +4208,7 @@ mod tests {
42084208

42094209
#[test]
42104210
fn detect_agents_reports_only_path_signals() {
4211-
let unique = SystemTime::now()
4212-
.duration_since(UNIX_EPOCH)
4213-
.expect("clock")
4214-
.as_nanos();
4215-
let root = std::env::temp_dir().join(format!("bt-detect-agents-{unique}"));
4216-
fs::create_dir_all(root.join(".claude")).expect("create repo heuristic");
4217-
fs::create_dir_all(root.join(".agents/skills")).expect("create codex heuristic");
4218-
fs::write(root.join("AGENTS.md"), "# Agents\n").expect("write agents file");
4219-
4220-
let old = std::env::current_dir().expect("cwd");
4221-
std::env::set_current_dir(&root).expect("cd root");
42224211
let detected = detect_agents();
4223-
std::env::set_current_dir(old).expect("restore cwd");
4224-
42254212
assert!(
42264213
detected.iter().all(|signal| signal.on_path),
42274214
"detect_agents should only emit PATH-based signals"

0 commit comments

Comments
 (0)