From: Rob N Date: Wed, 1 May 2024 08:53:09 +0000 (-1000) Subject: test(wallet): add thread safety test X-Git-Tag: v1.0.0-alpha.11~8^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/struct.CommandStringError.html?a=commitdiff_plain;h=db4734747240d2e1cc72bbfd7be6c49baa8d2967;p=bdk test(wallet): add thread safety test --- diff --git a/crates/bdk/tests/wallet.rs b/crates/bdk/tests/wallet.rs index 9a0dd3bf..b32a5215 100644 --- a/crates/bdk/tests/wallet.rs +++ b/crates/bdk/tests/wallet.rs @@ -3854,3 +3854,9 @@ fn test_tx_cancellation() { .unwrap(); assert_eq!(change_derivation_4, (KeychainKind::Internal, 2)); } + +#[test] +fn test_thread_safety() { + fn thread_safe() {} + thread_safe::(); // compiles only if true +}