From bc06579b755252801625b6989a3f28bca5aae7c4 Mon Sep 17 00:00:00 2001 From: James MacMahon Date: Thu, 19 Dec 2024 16:42:58 +0000 Subject: [PATCH] Fix the build break, and expand the comment --- nexus/tests/integration_tests/crucible_replacements.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nexus/tests/integration_tests/crucible_replacements.rs b/nexus/tests/integration_tests/crucible_replacements.rs index c301372d5f..e84c8a0614 100644 --- a/nexus/tests/integration_tests/crucible_replacements.rs +++ b/nexus/tests/integration_tests/crucible_replacements.rs @@ -689,12 +689,14 @@ async fn test_racing_replacements_for_soft_deleted_disk_volume( assert_eq!(expunged_region_snapshot.snapshot_id, snapshot.identity.id); } - // Either one or two regions can be returned, depending on if the snapshot - // destination volume was allocated on to the physical disk that was - // expunged. + // Either one or two read/write regions will be returned: + // + // - one for the disk, and + // - one for the snapshot destination volume, depending on if it was + // allocated on to the physical disk that was expunged. let expunged_regions = datastore - .find_regions_on_expunged_physical_disks(&opctx) + .find_read_write_regions_on_expunged_physical_disks(&opctx) .await .unwrap();