From 42eb89308718585df89e666d3b98dcfcdc001ee7 Mon Sep 17 00:00:00 2001 From: parazyd Date: Fri, 24 Sep 2021 01:15:18 +0200 Subject: [PATCH] tests: Remove created test wallets when done. --- src/wallet/cashierdb.rs | 1 + src/wallet/walletdb.rs | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/wallet/cashierdb.rs b/src/wallet/cashierdb.rs index 1b0155539..0ad309144 100644 --- a/src/wallet/cashierdb.rs +++ b/src/wallet/cashierdb.rs @@ -345,6 +345,7 @@ mod tests { assert_eq!(addr.is_none(), true); wallet.destroy()?; + std::fs::remove_file(walletdb_path)?; Ok(()) } diff --git a/src/wallet/walletdb.rs b/src/wallet/walletdb.rs index f7621a53f..13a8d814f 100644 --- a/src/wallet/walletdb.rs +++ b/src/wallet/walletdb.rs @@ -311,6 +311,7 @@ mod tests { assert_eq!(secret, keypair.private); wallet.destroy()?; + std::fs::remove_file(walletdb_path)?; Ok(()) } @@ -360,6 +361,7 @@ mod tests { assert_eq!(own_coin.witness.path(), witness.path()); wallet.destroy()?; + std::fs::remove_file(walletdb_path)?; Ok(()) } @@ -424,6 +426,7 @@ mod tests { } wallet.destroy()?; + std::fs::remove_file(walletdb_path)?; Ok(()) }