From 4ab7e8380620dd72079c98b2e6dfa76922e6607c Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 29 Mar 2021 12:12:26 +1100 Subject: [PATCH] Make use of `cargo test`s scoped test output By using `test_writer`, cargo can automatically scope the output of the test to the relevant thread and will also only output it if the test fails or is run with `--nocapture`. --- swap/tests/testutils/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/swap/tests/testutils/mod.rs b/swap/tests/testutils/mod.rs index 16724cff..041dff09 100644 --- a/swap/tests/testutils/mod.rs +++ b/swap/tests/testutils/mod.rs @@ -321,6 +321,7 @@ where let _guard = tracing_subscriber::fmt() .with_env_filter("warn,swap=debug,monero_harness=debug,monero_rpc=info,bitcoin_harness=info,testcontainers=info") + .with_test_writer() .set_default(); let env_config = C::get_config();