Use remove_dir_all crate for more robust Windows CI (#604)

* Use `remove_dir_all` 0.7 in tests only
This commit is contained in:
trevyn
2021-04-08 09:45:52 -04:00
committed by GitHub
parent 5ccca2d231
commit bdc5bd748a
9 changed files with 66 additions and 44 deletions
+1 -2
View File
@@ -26,7 +26,6 @@ use self::keychain::ExtKeychain;
use self::libwallet::WalletInst;
use impls::test_framework::{LocalWalletClient, WalletProxy};
use impls::{DefaultLCProvider, DefaultWalletImpl};
use std::fs;
use std::sync::Arc;
use util::secp::key::SecretKey;
use util::{Mutex, ZeroingString};
@@ -77,7 +76,7 @@ macro_rules! open_wallet_and_add {
pub fn clean_output_dir(test_dir: &str) {
let path = std::path::Path::new(test_dir);
if path.is_dir() {
fs::remove_dir_all(test_dir).unwrap();
remove_dir_all::remove_dir_all(test_dir).unwrap();
}
}