bridge desc tests: Apply tracing_test::traced_test

This lets us see the log messages.  They look fine, as it happens.
This commit is contained in:
Ian Jackson 2022-11-04 17:13:29 +00:00
parent 9424b0970d
commit 1fa9dd62b3
3 changed files with 4 additions and 0 deletions

1
Cargo.lock generated
View File

@ -3719,6 +3719,7 @@ dependencies = [
"tor-rtcompat",
"tor-rtmock",
"tracing",
"tracing-test",
]
[[package]]

View File

@ -80,6 +80,7 @@ tokio = { version = "1.7", features = ["full"] }
tor-linkspec = { path = "../tor-linkspec", version = "0.5.1" }
tor-rtcompat = { path = "../tor-rtcompat", version = "0.7.0", features = ["tokio", "native-tls"] }
tor-rtmock = { path = "../tor-rtmock", version = "0.6.0" }
tracing-test = "0.2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

View File

@ -21,6 +21,7 @@ use futures::select_biased;
use futures::stream::FusedStream;
use futures::Stream;
use itertools::{chain, Itertools};
use tracing_test::traced_test;
use tor_linkspec::HasAddrs;
use tor_rtcompat::SleepProvider;
@ -176,6 +177,7 @@ fn bad_bridge(i: usize) -> BridgeKey {
}
#[tokio::test]
#[traced_test]
async fn success() -> Result<(), anyhow::Error> {
let (bdm, runtime, mock, bridge) = setup();