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:
parent
9424b0970d
commit
1fa9dd62b3
|
@ -3719,6 +3719,7 @@ dependencies = [
|
||||||
"tor-rtcompat",
|
"tor-rtcompat",
|
||||||
"tor-rtmock",
|
"tor-rtmock",
|
||||||
"tracing",
|
"tracing",
|
||||||
|
"tracing-test",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -80,6 +80,7 @@ tokio = { version = "1.7", features = ["full"] }
|
||||||
tor-linkspec = { path = "../tor-linkspec", version = "0.5.1" }
|
tor-linkspec = { path = "../tor-linkspec", version = "0.5.1" }
|
||||||
tor-rtcompat = { path = "../tor-rtcompat", version = "0.7.0", features = ["tokio", "native-tls"] }
|
tor-rtcompat = { path = "../tor-rtcompat", version = "0.7.0", features = ["tokio", "native-tls"] }
|
||||||
tor-rtmock = { path = "../tor-rtmock", version = "0.6.0" }
|
tor-rtmock = { path = "../tor-rtmock", version = "0.6.0" }
|
||||||
|
tracing-test = "0.2"
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
all-features = true
|
all-features = true
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
|
@ -21,6 +21,7 @@ use futures::select_biased;
|
||||||
use futures::stream::FusedStream;
|
use futures::stream::FusedStream;
|
||||||
use futures::Stream;
|
use futures::Stream;
|
||||||
use itertools::{chain, Itertools};
|
use itertools::{chain, Itertools};
|
||||||
|
use tracing_test::traced_test;
|
||||||
|
|
||||||
use tor_linkspec::HasAddrs;
|
use tor_linkspec::HasAddrs;
|
||||||
use tor_rtcompat::SleepProvider;
|
use tor_rtcompat::SleepProvider;
|
||||||
|
@ -176,6 +177,7 @@ fn bad_bridge(i: usize) -> BridgeKey {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::test]
|
#[tokio::test]
|
||||||
|
#[traced_test]
|
||||||
async fn success() -> Result<(), anyhow::Error> {
|
async fn success() -> Result<(), anyhow::Error> {
|
||||||
let (bdm, runtime, mock, bridge) = setup();
|
let (bdm, runtime, mock, bridge) = setup();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue