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:
parent
6a66425931
commit
528deb296b
1 changed files with 2 additions and 1 deletions
|
|
@ -311,7 +311,8 @@ fn rebuild_on_model_or_chunker_change() {
|
||||||
let before = rig.index.held();
|
let before = rig.index.held();
|
||||||
let (refreshed, _) = rig.run(&mut forge);
|
let (refreshed, _) = rig.run(&mut forge);
|
||||||
assert!(format!("{:#}", refreshed.unwrap_err()).contains("no Huginn metadata"));
|
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
|
/// A NUL blob, an LFS pointer, an oversize file, Unity YAML and a lock file
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue