File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments