diff --git a/src/engine/strat_engine/backstore/backstore/v2.rs b/src/engine/strat_engine/backstore/backstore/v2.rs index 3771becafc..5d4d6f99eb 100644 --- a/src/engine/strat_engine/backstore/backstore/v2.rs +++ b/src/engine/strat_engine/backstore/backstore/v2.rs @@ -1217,13 +1217,10 @@ mod tests { _ => panic!("impossible; see first assertion"), } ); - assert!( - backstore - .allocs - .iter() - .map(|(_, len)| *len) - .sum::() - <= backstore.size() + assert!(backstore.datatier_allocated_size() <= backstore.size()); + assert_eq!( + backstore.datatier_allocated_size() + backstore.datatier_crypt_meta_size(), + backstore.data_tier.allocated() ); backstore.data_tier.invariant();