Skip to content

Commit c7047a0

Browse files
committed
use build_empty() where we can
1 parent ce2520e commit c7047a0

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

nexus/db-queries/src/db/datastore/vpc.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3312,10 +3312,7 @@ mod tests {
33123312
};
33133313

33143314
// Create an initial, empty blueprint, and make it the target.
3315-
let bp0 = BlueprintBuilder::build_empty_with_sleds(
3316-
sled_ids.iter().copied(),
3317-
"test",
3318-
);
3315+
let bp0 = BlueprintBuilder::build_empty("test");
33193316
bp_insert_and_make_target(&opctx, &datastore, &bp0).await;
33203317

33213318
// Our blueprint doesn't describe any services, so we shouldn't find any

nexus/src/app/background/tasks/crdb_node_id_collector.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -401,10 +401,7 @@ mod tests {
401401
let db = TestDatabase::new_with_datastore(&logctx.log).await;
402402
let (opctx, datastore) = (db.opctx(), db.datastore());
403403

404-
let blueprint = BlueprintBuilder::build_empty_with_sleds(
405-
iter::once(SledUuid::new_v4()),
406-
"test",
407-
);
404+
let blueprint = BlueprintBuilder::build_empty("test");
408405
let blueprint_target = BlueprintTarget {
409406
target_id: blueprint.id,
410407
enabled: true,
@@ -464,10 +461,7 @@ mod tests {
464461
let db = TestDatabase::new_with_datastore(&logctx.log).await;
465462
let (opctx, datastore) = (db.opctx(), db.datastore());
466463

467-
let blueprint = BlueprintBuilder::build_empty_with_sleds(
468-
iter::once(SledUuid::new_v4()),
469-
"test",
470-
);
464+
let blueprint = BlueprintBuilder::build_empty("test");
471465
let blueprint_target = BlueprintTarget {
472466
target_id: blueprint.id,
473467
enabled: true,

0 commit comments

Comments
 (0)