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

View File

@@ -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<T: Send + Sync>() {}
thread_safe::<Wallet>(); // compiles only if true
}