test(wallet): add thread safety test

This commit is contained in:
Rob N committed 2024-05-02 08:43:02 -10:00
1 parent 08fac47c29
commit db47347472
1 file changed
+6
+6
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
}