test(wallet): add thread safety test

This commit is contained in:
Rob N 2024-04-30 22:53:09 -10:00
parent 08fac47c29
commit db47347472
No known key found for this signature in database
GPG Key ID: F4DD8F8486EC0F1F

View File

@ -3854,3 +3854,9 @@ fn test_tx_cancellation() {
.unwrap(); .unwrap();
assert_eq!(change_derivation_4, (KeychainKind::Internal, 2)); assert_eq!(change_derivation_4, (KeychainKind::Internal, 2));
} }
#[test]
fn test_thread_safety() {
fn thread_safe<T: Send + Sync>() {}
thread_safe::<Wallet>(); // compiles only if true
}