diff options
Diffstat (limited to 'atuin-client/src/encryption.rs')
| -rw-r--r-- | atuin-client/src/encryption.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/atuin-client/src/encryption.rs b/atuin-client/src/encryption.rs index ecb8a0c7..5721c2f9 100644 --- a/atuin-client/src/encryption.rs +++ b/atuin-client/src/encryption.rs @@ -133,14 +133,11 @@ mod test { // test decryption works // this should pass match decrypt(&e1, &key1) { - Err(e) => assert!(false, "failed to decrypt, got {}", e), + Err(e) => panic!("failed to decrypt, got {}", e), Ok(h) => assert_eq!(h, history), }; // this should err - match decrypt(&e2, &key1) { - Ok(_) => assert!(false, "expected an error decrypting with invalid key"), - Err(_) => {} - }; + decrypt(&e2, &key1).expect_err("expected an error decrypting with invalid key"); } } |
