Skip to content

Commit

Permalink
Add lower bound for filesystem snapshot tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jbaublitz committed Apr 18, 2024
1 parent 34cf968 commit 4694a2a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/engine/strat_engine/thinpool/thinpool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3125,6 +3125,7 @@ mod tests {
None,
)
.unwrap();
warn!("Available: {}", backstore.available_in_backstore());
let mut pool = ThinPool::<backstore::v2::Backstore>::new(
pool_uuid,
&ThinPoolSizeParams::new(backstore.available_in_backstore()).unwrap(),
Expand Down Expand Up @@ -3219,15 +3220,15 @@ mod tests {
#[test]
fn loop_test_filesystem_snapshot() {
loopbacked::test_with_spec(
&loopbacked::DeviceLimits::Range(2, 3, None),
&loopbacked::DeviceLimits::Range(2, 3, Some(Bytes::from(5 * IEC::Gi).sectors())),
test_filesystem_snapshot,
);
}

#[test]
fn real_test_filesystem_snapshot() {
real::test_with_spec(
&real::DeviceLimits::AtLeast(2, None, None),
&real::DeviceLimits::AtLeast(2, Some(Bytes::from(5 * IEC::Gi).sectors()), None),
test_filesystem_snapshot,
);
}
Expand Down

0 comments on commit 4694a2a

Please sign in to comment.