From 8b34ba2589ae1d232bad09cb52f7ddf57566d699 Mon Sep 17 00:00:00 2001 From: mulhern Date: Mon, 10 Jul 2023 19:38:05 -0400 Subject: [PATCH] Use enriched return value in test Signed-off-by: mulhern --- src/engine/strat_engine/pool.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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]