Skip to content

Commit

Permalink
wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Dec 20, 2024
1 parent e70abb2 commit 967a0ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xmtp_mls/src/storage/encrypted_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,12 @@ pub(crate) mod tests {
let db_path = tmp_path();
let opts = StorageOption::Persistent(db_path.clone());

#[cfg(not(target_arch = "wasm32"))]
let db =
native::NativeDb::new(&opts, Some(EncryptedMessageStore::generate_enc_key())).unwrap();
#[cfg(target_arch = "wasm32")]
let db = wasm::WasmDb::new(&opts).await?;

let store = EncryptedMessageStore { db, opts };
store.db.validate(&store.opts).unwrap();

Expand Down

0 comments on commit 967a0ab

Please sign in to comment.