From db4734747240d2e1cc72bbfd7be6c49baa8d2967 Mon Sep 17 00:00:00 2001 From: Rob N Date: Tue, 30 Apr 2024 22:53:09 -1000 Subject: [PATCH] test(wallet): add thread safety test --- crates/bdk/tests/wallet.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 +}