mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-06 03:20:53 +00:00
fix: fix bug in test
This commit is contained in:
parent
761f769a48
commit
e55c182d9b
1 changed files with 5 additions and 6 deletions
|
|
@ -348,7 +348,6 @@ mod tests {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
println!("{}", encrypted);
|
|
||||||
assert!(base64::decode(encrypted).is_ok());
|
assert!(base64::decode(encrypted).is_ok());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -423,10 +422,7 @@ mod tests {
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(std::fs::read_to_string(&decrypted_file).unwrap(), PASSWORD);
|
||||||
std::fs::read_to_string(&decrypted_file).unwrap(),
|
|
||||||
"PASSWORD"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
|
@ -457,6 +453,9 @@ mod tests {
|
||||||
|
|
||||||
assert_eq!(plain_buffer.len(), decrypted_buffer.len());
|
assert_eq!(plain_buffer.len(), decrypted_buffer.len());
|
||||||
|
|
||||||
assert_eq!(String::from_utf8(decrypted_buffer.clone()).unwrap(), PASSWORD);
|
assert_eq!(
|
||||||
|
String::from_utf8(decrypted_buffer.clone()).unwrap(),
|
||||||
|
PASSWORD
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue