Skip to content

Commit

Permalink
Fix ut compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
Nao-ris committed Dec 19, 2024
1 parent 30296eb commit 7337b3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ enum_from_primitive! {
/// Database encryption algorithms
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum EncryptionAlgorithm {
Compact = kCBLEncryptionNone as isize,
Reindex = kCBLEncryptionAES256 as isize,
None = kCBLEncryptionNone as isize,
AES256 = kCBLEncryptionAES256 as isize,
}
}

Expand Down
3 changes: 2 additions & 1 deletion tests/database_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ fn db_encryption_key() {
directory: tmp_dir.path(),
encryption_key: None,
};
let encryption_key = EncryptionKey::new_from_password("password1").unwrap();
let encryption_key =
EncryptionKey::new_from_password(EncryptionAlgorithm::None, "password1").unwrap();
let cfg_encryption1 = DatabaseConfiguration {
directory: tmp_dir.path(),
encryption_key: Some(encryption_key.clone()),
Expand Down

0 comments on commit 7337b3e

Please sign in to comment.