diff --git a/lib/src/lightclient.rs b/lib/src/lightclient.rs index 2177a81..e53234a 100644 --- a/lib/src/lightclient.rs +++ b/lib/src/lightclient.rs @@ -1161,7 +1161,11 @@ pub mod tests { lc.wallet.write().unwrap().unlock("password".to_string()).unwrap(); assert!(!lc.do_export(None).is_err()); assert!(!lc.do_seed_phrase().is_err()); + + // This will lock the wallet again, so after this, we'll need to unlock again assert!(!lc.do_new_address("t").is_err()); + lc.wallet.write().unwrap().unlock("password".to_string()).unwrap(); + assert!(!lc.do_new_address("z").is_err()); }