[tests] Add tests for Wallet::create_tx()

This commit is contained in:
Alekos Filini
2020-08-10 17:16:47 +02:00
parent 9e5023670e
commit 53b5f23fb2
5 changed files with 680 additions and 19 deletions

View File

@@ -10,7 +10,6 @@ use std::env;
use std::ops::Deref;
use std::path::PathBuf;
use std::str::FromStr;
use std::sync::Mutex;
use std::time::Duration;
#[allow(unused_imports)]
@@ -26,12 +25,6 @@ pub use bitcoincore_rpc::{Auth, Client as RpcClient, RpcApi};
pub use electrum_client::{Client as ElectrumClient, ElectrumApi};
lazy_static! {
static ref SYNC_TESTS_MUTEX: Mutex<()> = Mutex::new(());
}
pub fn test_init() {}
// TODO: we currently only support env vars, we could also parse a toml file
fn get_auth() -> Auth {
match env::var("MAGICAL_RPC_AUTH").as_ref().map(String::as_ref) {
@@ -217,7 +210,6 @@ macro_rules! testutils {
}).unwrap();
internal = Some(string_internal.try_into().unwrap());
)*
(external, internal)