diff --git a/src/engine/strat_engine/pool.rs b/src/engine/strat_engine/pool.rs index b02367da08..8f02602e26 100644 --- a/src/engine/strat_engine/pool.rs +++ b/src/engine/strat_engine/pool.rs @@ -1760,14 +1760,17 @@ mod tests { }; assert!(pool.out_of_alloc_space()); - pool.grow_physical(pool_name, *pool_uuid, dev_uuid) - .unwrap() - .0 - .changed() - .unwrap(); + let (act, pool_diff) = pool.grow_physical(pool_name, *pool_uuid, dev_uuid).unwrap(); + assert!(act.is_changed()); let (_, dev) = pool.get_blockdev(dev_uuid).unwrap(); assert_eq!(dev.size(), 2u64 * size); assert!(!pool.out_of_alloc_space()); + assert!(!pool_diff + .unwrap() + .pool + .out_of_alloc_space + .changed() + .unwrap()); } #[test]