Fix workspace coverage ownership tests

This commit is contained in:
Meta Vens 2026-08-21 21:58:39 +02:00
commit 5f8eb0023f
2 changed files with 11 additions and 4 deletions

View file

@ -3715,13 +3715,14 @@ mod tests {
#[test]
fn exact_batch_readback_rejects_vector_substitution() -> Result<()> {
let (repo, _state, runtime, basis) = coverage_fixture()?;
let (_, acquisition) = acquire_test(&runtime, &basis, "provider", "model", 3)?;
let planned = acquisition
let body = RepositoryBodyReadSession::open(&runtime, &basis)?;
let prepared = prepare_workspace_coverage_projection(&body, "provider", "model", 3)?;
let planned = prepared
.plan
.planned_points
.first()
.ok_or_else(|| anyhow!("fixture produced no planned points"))?;
let payload = payload_for(&acquisition.obligation, &acquisition.plan, planned);
let payload = payload_for(&prepared.obligation, &prepared.plan, planned);
let expected_vector = vec![0.25_f32; 3];
let point_bindings = vec![WorkspaceCoveragePointBinding {
point_id: planned.point_id.clone(),

View file

@ -768,7 +768,13 @@ mod tests {
&binding,
NOW,
)?)?;
assert!(open_workspace_coverage_authority(&fixture.runtime_store).is_err());
drop(store);
assert_eq!(
open_workspace_coverage_authority(&fixture.runtime_store)
.unwrap_err()
.to_string(),
"workspace coverage store binding disagrees with runtime route"
);
Ok(())
}