Fix tests

This commit is contained in:
Aditya Kulkarni 2019-12-02 15:22:08 -08:00
parent a0da414bca
commit 09cbc1feda

View File

@ -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());
}