mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-09 01:35:18 +02:00
test(optimize): assert the reconcile is metadata-only (fragments_removed)
The doc-comment promises fragments_added == fragments_removed == 0 for the metadata-only reconcile; the test only checked fragments_added. Assert fragments_removed == 0 too so the invariant is machine-checked.
This commit is contained in:
parent
e8a7836a6e
commit
fc77c9bb6d
1 changed files with 4 additions and 0 deletions
|
|
@ -312,6 +312,10 @@ async fn optimize_reconciles_preexisting_manifest_head_drift() {
|
|||
person.fragments_added, 0,
|
||||
"drift reconcile is metadata-only — no new compaction",
|
||||
);
|
||||
assert_eq!(
|
||||
person.fragments_removed, 0,
|
||||
"drift reconcile is metadata-only — no fragments rewritten",
|
||||
);
|
||||
|
||||
// Manifest now tracks the Lance HEAD.
|
||||
let snap = db.snapshot_of(ReadTarget::branch("main")).await.unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue