fix(oauth): Don't run OAuth tests under WASM

They almost all require a mock server.

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille
2025-03-22 10:21:22 +01:00
committed by Stefan Ceriu
parent c4ec32cb78
commit 9434a112d9
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ pub enum CrossProcessRefreshLockError {
DuplicatedLock,
}
#[cfg(all(test, feature = "e2e-encryption"))]
#[cfg(all(test, feature = "e2e-encryption", not(target_arch = "wasm32")))]
mod tests {
use anyhow::Context as _;

View File

@@ -177,7 +177,7 @@ pub mod qrcode;
pub mod registration;
#[cfg(not(target_arch = "wasm32"))]
mod registration_store;
#[cfg(test)]
#[cfg(all(test, not(target_arch = "wasm32")))]
mod tests;
#[cfg(not(target_arch = "wasm32"))]