sources tests: do not hold the fake's lock across its own accessor

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-10-31 06:32:51 +01:00
commit 528deb296b

View file

@ -311,7 +311,8 @@ fn rebuild_on_model_or_chunker_change() {
let before = rig.index.held();
let (refreshed, _) = rig.run(&mut forge);
assert!(format!("{:#}", refreshed.unwrap_err()).contains("no Huginn metadata"));
assert_eq!((rig.index.state.lock().unwrap().recreated, rig.index.held()), (3, before), "untouched");
let recreated = rig.index.state.lock().unwrap().recreated;
assert_eq!((recreated, rig.index.held()), (3, before), "untouched");
}
/// A NUL blob, an LFS pointer, an oversize file, Unity YAML and a lock file