mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-23 03:59:22 +00:00
Restore logger init in processor tests
This commit is contained in:
parent
052ef39a25
commit
da01de08c9
1 changed files with 8 additions and 2 deletions
|
@ -34,18 +34,20 @@ macro_rules! test_network {
|
||||||
$no_deadlock_in_multisig_completed: ident,
|
$no_deadlock_in_multisig_completed: ident,
|
||||||
) => {
|
) => {
|
||||||
use $crate::tests::{
|
use $crate::tests::{
|
||||||
test_key_gen, test_scanner, test_no_deadlock_in_multisig_completed, test_signer, test_wallet,
|
INIT_LOGGER, test_key_gen, test_scanner, test_no_deadlock_in_multisig_completed, test_signer,
|
||||||
test_addresses,
|
test_wallet, test_addresses,
|
||||||
};
|
};
|
||||||
|
|
||||||
// This doesn't interact with a node and accordingly doesn't need to be run
|
// This doesn't interact with a node and accordingly doesn't need to be run
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
async fn $key_gen() {
|
async fn $key_gen() {
|
||||||
|
*INIT_LOGGER;
|
||||||
test_key_gen::<$N>().await;
|
test_key_gen::<$N>().await;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn $scanner() {
|
fn $scanner() {
|
||||||
|
*INIT_LOGGER;
|
||||||
let docker = $docker();
|
let docker = $docker();
|
||||||
docker.run(|ops| async move {
|
docker.run(|ops| async move {
|
||||||
test_scanner($network(&ops).await).await;
|
test_scanner($network(&ops).await).await;
|
||||||
|
@ -54,6 +56,7 @@ macro_rules! test_network {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn $signer() {
|
fn $signer() {
|
||||||
|
*INIT_LOGGER;
|
||||||
let docker = $docker();
|
let docker = $docker();
|
||||||
docker.run(|ops| async move {
|
docker.run(|ops| async move {
|
||||||
test_signer($network(&ops).await).await;
|
test_signer($network(&ops).await).await;
|
||||||
|
@ -62,6 +65,7 @@ macro_rules! test_network {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn $wallet() {
|
fn $wallet() {
|
||||||
|
*INIT_LOGGER;
|
||||||
let docker = $docker();
|
let docker = $docker();
|
||||||
docker.run(|ops| async move {
|
docker.run(|ops| async move {
|
||||||
test_wallet($network(&ops).await).await;
|
test_wallet($network(&ops).await).await;
|
||||||
|
@ -70,6 +74,7 @@ macro_rules! test_network {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn $addresses() {
|
fn $addresses() {
|
||||||
|
*INIT_LOGGER;
|
||||||
let docker = $docker();
|
let docker = $docker();
|
||||||
docker.run(|ops| async move {
|
docker.run(|ops| async move {
|
||||||
test_addresses($network(&ops).await).await;
|
test_addresses($network(&ops).await).await;
|
||||||
|
@ -78,6 +83,7 @@ macro_rules! test_network {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn $no_deadlock_in_multisig_completed() {
|
fn $no_deadlock_in_multisig_completed() {
|
||||||
|
*INIT_LOGGER;
|
||||||
let docker = $docker();
|
let docker = $docker();
|
||||||
docker.run(|ops| async move {
|
docker.run(|ops| async move {
|
||||||
test_no_deadlock_in_multisig_completed($network(&ops).await).await;
|
test_no_deadlock_in_multisig_completed($network(&ops).await).await;
|
||||||
|
|
Loading…
Reference in a new issue