Skip to content

Commit

Permalink
Make soft-error assertion less sensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
marti4d committed Jan 8, 2025
1 parent 47f5d80 commit ccfb700
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/linux_minidump_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,13 @@ contextual_test! {
let dump = Minidump::read_path(tmpfile.path()).expect("failed to read minidump");
let soft_error_json = read_minidump_soft_errors_or_panic(&dump);

assert_eq!(soft_error_json, serde_json::json! {
["PrincipalMappingNotReferenced"]
});
assert!(
soft_error_json
.as_array()
.unwrap()
.iter()
.any(|item| item.as_str() == Some("PrincipalMappingNotReferenced"))
);
}
}

Expand Down

0 comments on commit ccfb700

Please sign in to comment.