Skip to content

Commit

Permalink
Patch firmware tests
Browse files Browse the repository at this point in the history
  • Loading branch information
smklein committed Jul 2, 2024
1 parent 8f2301d commit 48c3578
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions sled-storage/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -999,21 +999,17 @@ mod tests {

// Now let's verify we saw the correct firmware update.
for rd in &raw_disks {
let disk = all_disks_gen2
.iter_managed()
.find_map(|(identity, disk)| {
let firmware = all_disks_gen2
.iter_all()
.find_map(|(identity, _, _, fw)| {
if identity == rd.identity() {
Some(disk)
Some(fw)
} else {
None
}
})
.expect("disk exists");
assert_eq!(
disk.firmware(),
rd.firmware(),
"didn't see firmware update"
);
assert_eq!(firmware, rd.firmware(), "didn't see firmware update");
}

harness.cleanup().await;
Expand Down

0 comments on commit 48c3578

Please sign in to comment.