Restore logger init in processor tests

This commit is contained in:
Luke Parker 2023-10-27 23:08:06 -04:00
parent 052ef39a25
commit da01de08c9
No known key found for this signature in database

View file

@ -34,18 +34,20 @@ macro_rules! test_network {
$no_deadlock_in_multisig_completed: ident,
) => {
use $crate::tests::{
test_key_gen, test_scanner, test_no_deadlock_in_multisig_completed, test_signer, test_wallet,
test_addresses,
INIT_LOGGER, test_key_gen, test_scanner, test_no_deadlock_in_multisig_completed, test_signer,
test_wallet, test_addresses,
};
// This doesn't interact with a node and accordingly doesn't need to be run
#[tokio::test]
async fn $key_gen() {
*INIT_LOGGER;
test_key_gen::<$N>().await;
}
#[test]
fn $scanner() {
*INIT_LOGGER;
let docker = $docker();
docker.run(|ops| async move {
test_scanner($network(&ops).await).await;
@ -54,6 +56,7 @@ macro_rules! test_network {
#[test]
fn $signer() {
*INIT_LOGGER;
let docker = $docker();
docker.run(|ops| async move {
test_signer($network(&ops).await).await;
@ -62,6 +65,7 @@ macro_rules! test_network {
#[test]
fn $wallet() {
*INIT_LOGGER;
let docker = $docker();
docker.run(|ops| async move {
test_wallet($network(&ops).await).await;
@ -70,6 +74,7 @@ macro_rules! test_network {
#[test]
fn $addresses() {
*INIT_LOGGER;
let docker = $docker();
docker.run(|ops| async move {
test_addresses($network(&ops).await).await;
@ -78,6 +83,7 @@ macro_rules! test_network {
#[test]
fn $no_deadlock_in_multisig_completed() {
*INIT_LOGGER;
let docker = $docker();
docker.run(|ops| async move {
test_no_deadlock_in_multisig_completed($network(&ops).await).await;