mirror of
https://github.com/serai-dex/serai.git
synced 2024-12-22 19:49: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,
|
||||
) => {
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue