test(automation): one lock for the window-requests assertion

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Mann
2026-12-03 02:12:39 +01:00
parent 06076e6405
commit 5a5ecaf5d7
+2 -1
View File
@@ -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]