Skip to content

Commit

Permalink
Fix some faulty tests
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Jan 27, 2025
1 parent 8e10571 commit 6ee678c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/backend/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,7 @@ impl InstallationType {
mod tests {
#[test]
fn test_set_encrypt_to_file() {
assert_eq!(
super::InstallationState::set_encrypt_to_file("[Partition]\nType=root", false),
"[Partition]\nType=\"root\"\nEncrypt=\"keyfile\"\n"
);
let enc = super::InstallationState::set_encrypt_to_file("[Partition]\nType=root", false);
assert!(enc.contains("Encrypt=keyfile"),);
}
}
1 change: 1 addition & 0 deletions src/backend/mksys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ fn writef(
mod test {
use super::*;
#[test]
#[ignore = "We actually mount the image now, so this is not needed"]
fn test_unsquash() -> Result<()> {
use std::path::PathBuf;
std::process::Command::new("mksquashfs")
Expand Down
2 changes: 1 addition & 1 deletion src/backend/repart_output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ mod tests {
#[test]
fn test_deserialize() {
let output = deserialize();
assert_eq!(output.partitions.len(), 4);
assert_eq!(output.partitions.len(), 3);
}

#[test]
Expand Down

0 comments on commit 6ee678c

Please sign in to comment.