test(wallet): add thread safety test
This commit is contained in:
parent
08fac47c29
commit
db47347472
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user