From c0a7d541fed08dee75ce78e93e65882c0bf46695 Mon Sep 17 00:00:00 2001 From: John Baublitz Date: Thu, 9 Nov 2023 13:48:06 -0500 Subject: [PATCH] Fix backstore tests --- src/engine/strat_engine/backstore/backstore/v2.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/engine/strat_engine/backstore/backstore/v2.rs b/src/engine/strat_engine/backstore/backstore/v2.rs index 1dd4139775d..59d06d01215 100644 --- a/src/engine/strat_engine/backstore/backstore/v2.rs +++ b/src/engine/strat_engine/backstore/backstore/v2.rs @@ -1153,12 +1153,7 @@ mod tests { assert_eq!( backstore.data_tier.allocated(), match (&backstore.origin, &backstore.cache) { - (None, None) => - if backstore.is_encrypted() { - crypt_metadata_size().sectors() - } else { - Sectors(0) - }, + (None, None) => crypt_metadata_size().sectors(), (&None, Some(cache)) => cache.size(), (Some(linear), &None) => linear.size(), _ => panic!("impossible; see first assertion"),