Skip to content

Commit

Permalink
Use enriched return value in test
Browse files Browse the repository at this point in the history
Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jul 11, 2023
1 parent f1fa313 commit 8b34ba2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/engine/strat_engine/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 8b34ba2

Please sign in to comment.