From ca1f9f076c00f4b05a38fb514646e7ed85c324cd Mon Sep 17 00:00:00 2001 From: Xiaoyang Han Date: Thu, 8 Oct 2026 01:04:48 +0800 Subject: [PATCH] test(mst2): retain storage while updating chunk fixture facts Bind the fixture MonoStorage Arc before borrowing its database connection across async queries. Fix exact E0716 in the new CHUNK test helper. The whole-file delta is this binding only; all test bodies/assertions and production code remain unchanged. Repaired native validation is pending. --- src/api/router/snapshot_chunks_bounded_tests.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/router/snapshot_chunks_bounded_tests.rs b/src/api/router/snapshot_chunks_bounded_tests.rs index a32add5c..bbbd14c4 100644 --- a/src/api/router/snapshot_chunks_bounded_tests.rs +++ b/src/api/router/snapshot_chunks_bounded_tests.rs @@ -134,7 +134,8 @@ async fn oid_for(fixture: &Fixture, path: &str) -> String { } async fn set_fact(fixture: &Fixture, oid: &str, size: u64, digest: [u8; 32]) { - let db = fixture.state.storage.mono_storage().get_connection(); + let storage = fixture.state.storage.mono_storage(); + let db = storage.get_connection(); let fact = mst2_verified_object::Entity::find() .filter(mst2_verified_object::Column::GitOid.eq(oid)) .one(db)