Skip to content

Commit

Permalink
init tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Aug 22, 2024
1 parent 4894169 commit 99fdd2c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions quinn-udp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ windows-sys = { workspace = true }

[dev-dependencies]
criterion = "0.5"
tracing-subscriber = { workspace = true }

[target.'cfg(any(target_os = "linux", target_os = "windows"))'.bench]
name = "throughput"
Expand Down
3 changes: 3 additions & 0 deletions quinn-udp/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ fn basic() {

#[test]
fn ecn_v6() {
let _ = tracing_subscriber::fmt::try_init();
let send = Socket::from(UdpSocket::bind("[::1]:0").unwrap());
let recv = Socket::from(UdpSocket::bind("[::1]:0").unwrap());
for codepoint in [EcnCodepoint::Ect0, EcnCodepoint::Ect1] {
Expand All @@ -53,6 +54,7 @@ fn ecn_v6() {
#[test]
#[cfg(not(any(target_os = "openbsd", target_os = "netbsd", target_os = "solaris")))]
fn ecn_v4() {
let _ = tracing_subscriber::fmt::try_init();
let send = Socket::from(UdpSocket::bind("127.0.0.1:0").unwrap());
let recv = Socket::from(UdpSocket::bind("127.0.0.1:0").unwrap());
for codepoint in [EcnCodepoint::Ect0, EcnCodepoint::Ect1] {
Expand All @@ -73,6 +75,7 @@ fn ecn_v4() {
#[test]
#[cfg(not(any(target_os = "openbsd", target_os = "netbsd", target_os = "solaris")))]
fn ecn_v6_dualstack() {
let _ = tracing_subscriber::fmt::try_init();
let recv = socket2::Socket::new(
socket2::Domain::IPV6,
socket2::Type::DGRAM,
Expand Down

0 comments on commit 99fdd2c

Please sign in to comment.