diff --git a/xmtp_mls/src/storage/encrypted_store/mod.rs b/xmtp_mls/src/storage/encrypted_store/mod.rs index d072321c0..fa2cc4215 100644 --- a/xmtp_mls/src/storage/encrypted_store/mod.rs +++ b/xmtp_mls/src/storage/encrypted_store/mod.rs @@ -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();