diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/sync_broadcast.rs | 1 | ||||
-rw-r--r-- | tests/sync_watch.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/sync_broadcast.rs b/tests/sync_broadcast.rs index 9aa3484..2221fe3 100644 --- a/tests/sync_broadcast.rs +++ b/tests/sync_broadcast.rs @@ -291,6 +291,7 @@ fn capacity_too_big() { } #[test] +#[cfg(panic = "unwind")] #[cfg(not(tokio_wasm))] // wasm currently doesn't support unwinding fn panic_in_clone() { use std::panic::{self, AssertUnwindSafe}; diff --git a/tests/sync_watch.rs b/tests/sync_watch.rs index 34f9b78..d4f8ce8 100644 --- a/tests/sync_watch.rs +++ b/tests/sync_watch.rs @@ -213,6 +213,7 @@ fn reopened_after_subscribe() { } #[test] +#[cfg(panic = "unwind")] #[cfg(not(tokio_wasm))] // wasm currently doesn't support unwinding fn send_modify_panic() { let (tx, mut rx) = watch::channel("one"); |