diff --git a/crates/automation/src/agents_tests.rs b/crates/automation/src/agents_tests.rs index 21b7a52a2..c1ddcfcac 100644 --- a/crates/automation/src/agents_tests.rs +++ b/crates/automation/src/agents_tests.rs @@ -182,7 +182,8 @@ fn the_commands_folders_bind_calls_to_the_window_too() { let e = crate::tools::run(&mut b, tool, &args).err().map(|e| e.to_string()).unwrap_or_default(); assert!(e.contains("not available while file access is confined"), "{tool}: {e}"); } - assert_eq!(seen.lock().unwrap().len(), 1, "only the save inside reached the window: {:?}", seen.lock().unwrap()); + let seen = seen.lock().unwrap(); + assert_eq!(seen.len(), 1, "only the save inside reached the window: {seen:?}"); } #[test]