Skip to content

Commit 07c198f

Browse files
committed
test fixups
1 parent 87fc979 commit 07c198f

File tree

1 file changed

+12
-12
lines changed
  • nexus/reconfigurator/planning/src/mgs_updates

1 file changed

+12
-12
lines changed

nexus/reconfigurator/planning/src/mgs_updates/mod.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ mod test {
11131113
let initial_updates = PendingMgsUpdates::new();
11141114
let nmax_updates = 1;
11151115
let impossible_update_policy = ImpossibleUpdatePolicy::Reevaluate;
1116-
let updates = plan_mgs_updates(
1116+
let (updates, _host_phase_2) = plan_mgs_updates(
11171117
log,
11181118
&collection,
11191119
current_boards,
@@ -1127,7 +1127,7 @@ mod test {
11271127
// Test that when a TUF repo is specified and one RoT is outdated, then
11281128
// it's configured with an update (and the update looks correct).
11291129
let repo = test_boards.tuf_repo();
1130-
let updates = plan_mgs_updates(
1130+
let (updates, _host_phase_2) = plan_mgs_updates(
11311131
log,
11321132
&collection,
11331133
current_boards,
@@ -1150,7 +1150,7 @@ mod test {
11501150
// Test that when an update is already pending, and nothing changes
11511151
// about the state of the world (i.e., the inventory), then the planner
11521152
// makes no changes.
1153-
let later_updates = plan_mgs_updates(
1153+
let (later_updates, _host_phase_2) = plan_mgs_updates(
11541154
log,
11551155
&collection,
11561156
current_boards,
@@ -1172,7 +1172,7 @@ mod test {
11721172
.stage0_version_exception(SpType::Sled, 0, ARTIFACT_VERSION_1)
11731173
.stage0_version_exception(SpType::Switch, 1, ARTIFACT_VERSION_1)
11741174
.build();
1175-
let later_updates = plan_mgs_updates(
1175+
let (later_updates, _host_phase_2) = plan_mgs_updates(
11761176
log,
11771177
&later_collection,
11781178
current_boards,
@@ -1198,7 +1198,7 @@ mod test {
11981198
.rot_active_version_exception(SpType::Switch, 1, ARTIFACT_VERSION_1)
11991199
.stage0_version_exception(SpType::Switch, 1, ARTIFACT_VERSION_1)
12001200
.build();
1201-
let later_updates = plan_mgs_updates(
1201+
let (later_updates, _host_phase_2) = plan_mgs_updates(
12021202
log,
12031203
&later_collection,
12041204
current_boards,
@@ -1228,7 +1228,7 @@ mod test {
12281228
ExpectedVersion::NoValidVersion,
12291229
)
12301230
.build();
1231-
let later_updates = plan_mgs_updates(
1231+
let (later_updates, _host_phase_2) = plan_mgs_updates(
12321232
log,
12331233
&updated_collection,
12341234
current_boards,
@@ -1248,7 +1248,7 @@ mod test {
12481248
)
12491249
.stage0_version_exception(SpType::Sled, 0, ARTIFACT_VERSION_1)
12501250
.build();
1251-
let updates = plan_mgs_updates(
1251+
let (updates, _host_phase_2) = plan_mgs_updates(
12521252
log,
12531253
&collection,
12541254
&BTreeSet::new(),
@@ -1258,7 +1258,7 @@ mod test {
12581258
impossible_update_policy,
12591259
);
12601260
assert!(updates.is_empty());
1261-
let updates = plan_mgs_updates(
1261+
let (updates, _host_phase_2) = plan_mgs_updates(
12621262
log,
12631263
&collection,
12641264
&collection.baseboards,
@@ -1301,7 +1301,7 @@ mod test {
13011301
)
13021302
.stage0_version_exception(SpType::Sled, 0, ARTIFACT_VERSION_1)
13031303
.build();
1304-
let new_updates = plan_mgs_updates(
1304+
let (new_updates, _host_phase_2) = plan_mgs_updates(
13051305
log,
13061306
&collection,
13071307
&collection.baseboards,
@@ -1342,7 +1342,7 @@ mod test {
13421342
)
13431343
.stage0_version_exception(SpType::Sled, 0, ARTIFACT_VERSION_1_5)
13441344
.build();
1345-
let new_updates = plan_mgs_updates(
1345+
let (new_updates, _host_phase_2) = plan_mgs_updates(
13461346
log,
13471347
&collection,
13481348
&collection.baseboards,
@@ -1678,7 +1678,7 @@ mod test {
16781678
ExpectedVersion::NoValidVersion,
16791679
)
16801680
.build();
1681-
let all_updates = plan_mgs_updates(
1681+
let (all_updates, _host_phase_2) = plan_mgs_updates(
16821682
log,
16831683
&collection,
16841684
&collection.baseboards,
@@ -1714,7 +1714,7 @@ mod test {
17141714
ExpectedVersion::NoValidVersion,
17151715
)
17161716
.build();
1717-
let all_updates = plan_mgs_updates(
1717+
let (all_updates, _host_phase_2) = plan_mgs_updates(
17181718
log,
17191719
&collection,
17201720
&collection.baseboards,

0 commit comments

Comments
 (0)