From 78433d3dc73f1c6df1c35a91e2ef39552279e626 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 27 May 2024 09:48:08 +0200 Subject: [PATCH] test(sdk): Do not run `proptest` on `wasm32`. --- crates/matrix-sdk/Cargo.toml | 2 +- crates/matrix-sdk/src/event_cache/linked_chunk/as_vector.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index 2519c7318..d51fd2ca9 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -143,7 +143,6 @@ futures-executor = { workspace = true } matrix-sdk-base = { workspace = true, features = ["testing"] } matrix-sdk-test = { workspace = true } once_cell = { workspace = true } -proptest = "1.4.0" serde_urlencoded = "0.7.1" stream_assert = { workspace = true } tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } @@ -152,6 +151,7 @@ tracing-subscriber = { version = "0.3.11", features = ["env-filter"] } wasm-bindgen-test = "0.3.33" [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies] +proptest = "1.4.0" tokio = { workspace = true, features = ["rt-multi-thread", "macros"] } wiremock = { workspace = true } diff --git a/crates/matrix-sdk/src/event_cache/linked_chunk/as_vector.rs b/crates/matrix-sdk/src/event_cache/linked_chunk/as_vector.rs index 24c0af2db..bff2eecde 100644 --- a/crates/matrix-sdk/src/event_cache/linked_chunk/as_vector.rs +++ b/crates/matrix-sdk/src/event_cache/linked_chunk/as_vector.rs @@ -611,6 +611,7 @@ mod tests { assert_eq!(diffs.len(), 1); } + #[cfg(not(target_arch = "wasm32"))] mod proptests { use proptest::prelude::*;