Skip to content

Commit

Permalink
Fix backstore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaublitz committed Nov 9, 2023
1 parent b70c09c commit c0a7d54
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/engine/strat_engine/backstore/backstore/v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit c0a7d54

Please sign in to comment.