log: auto-init log for tests (#2073)

This commit is contained in:
Luna Yao
2026-04-12 07:04:21 +02:00
committed by GitHub
parent 51befdbf87
commit daa53e5168
5 changed files with 197 additions and 145 deletions
-6
View File
@@ -965,12 +965,6 @@ mod tests {
use super::*;
use bytes::Buf;
fn init() {
let _ = tracing_subscriber::fmt()
.with_env_filter("debug")
.try_init();
}
/// Helper function: Create a pair of interconnected QuicSockets.
/// Data sent by socket_a will enter socket_b's rx, and vice versa.
fn make_socket_pair() -> (QuicSocket, QuicSocket) {