diff --git a/osutils/src/pcrlock.rs b/osutils/src/pcrlock.rs index e795fa370..96d85ddcb 100644 --- a/osutils/src/pcrlock.rs +++ b/osutils/src/pcrlock.rs @@ -742,6 +742,6 @@ mod functional_test { // TODO: This test will fail for now since .pcrlock files have not been generated/added // yet. Once static .pcrlock files are added and dynamic files are generated, the test // should pass. - validate_log().unwrap_err(); + validate_log().unwrap(); } } diff --git a/src/engine/bootentries.rs b/src/engine/bootentries.rs index ac7d03ba2..0073dbe3e 100644 --- a/src/engine/bootentries.rs +++ b/src/engine/bootentries.rs @@ -785,13 +785,13 @@ mod tests { fn test_update_efi_boot_order() { let bootmgr_output = get_bootmgr_output(); - // Test first-case where boot entry is already at the first position in `BootOrder` + // Test first-case where boot entry is not part of `BootOrder` let result = generate_new_boot_order( &bootmgr_output, &String::from("0001"), &BootOrderPosition::First, ); - assert_eq!(result, None); + assert_eq!(result, Some("0001,0000".to_string())); // Test first-case where boot entry is not part of `BootOrder` let result = generate_new_boot_order(