From e55c182d9b9259e9afd0d50ba6caf9b846f570ed Mon Sep 17 00:00:00 2001 From: EETagent Date: Fri, 28 Oct 2022 23:32:33 +0200 Subject: [PATCH] fix: fix bug in test --- core/src/crypto.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/src/crypto.rs b/core/src/crypto.rs index aba3c8a..9723cd0 100644 --- a/core/src/crypto.rs +++ b/core/src/crypto.rs @@ -348,7 +348,6 @@ mod tests { .await .unwrap(); - println!("{}", encrypted); assert!(base64::decode(encrypted).is_ok()); } @@ -423,10 +422,7 @@ mod tests { .await .unwrap(); - assert_eq!( - std::fs::read_to_string(&decrypted_file).unwrap(), - "PASSWORD" - ); + assert_eq!(std::fs::read_to_string(&decrypted_file).unwrap(), PASSWORD); } #[tokio::test] @@ -457,6 +453,9 @@ mod tests { 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 + ); } }