From 363e69d11d236ca3b21cc3bc643bbedb46d2251f Mon Sep 17 00:00:00 2001 From: yuyr Date: Sun, 12 Jul 2026 07:40:28 +0800 Subject: [PATCH] =?UTF-8?q?20260711=20=E4=BF=AE=E6=AD=A3ROA=E7=BC=93?= =?UTF-8?q?=E5=AD=98projection=E5=AD=98=E5=82=A8=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/storage/tests.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/storage/tests.rs b/src/storage/tests.rs index 4dabbef..0848e8d 100644 --- a/src/storage/tests.rs +++ b/src/storage/tests.rs @@ -1231,7 +1231,10 @@ fn vcir_roundtrip_and_validation_failures_are_reported() { let store = RocksStore::open(td.path()).expect("open rocksdb"); let vcir = sample_vcir("rsync://example.test/repo/current.mft"); - store.put_vcir(&vcir).expect("put vcir"); + let roa_context = roa_cache_projection_context(&vcir); + store + .put_vcir_with_projections(&vcir, Some(&roa_context), None) + .expect("put vcir"); let got = store .get_vcir(&vcir.manifest_rsync_uri) .expect("get vcir") @@ -1471,8 +1474,13 @@ fn replace_vcir_and_manifest_replay_meta_replaces_current_entry() { previous.summary.local_vrp_count = 1; previous.summary.local_aspa_count = 0; previous.summary.local_router_key_count = 0; + let previous_roa_context = roa_cache_projection_context(&previous); let previous_timing = store - .replace_vcir_and_manifest_replay_meta(&previous) + .replace_vcir_manifest_replay_meta_and_projections( + &previous, + Some(&previous_roa_context), + None, + ) .expect("store previous vcir"); assert!(previous_timing.vcir_value_bytes > 0); assert!(previous_timing.replay_meta_value_bytes > 0);