diff --git a/crates/projection-xmpp/tests/lib.rs b/crates/projection-xmpp/tests/lib.rs index cdb850f..0dae478 100644 --- a/crates/projection-xmpp/tests/lib.rs +++ b/crates/projection-xmpp/tests/lib.rs @@ -124,7 +124,7 @@ impl ServerCertVerifier for IgnoreCertVerification { #[tokio::test] async fn scenario_basic() -> Result<()> { - tracing_subscriber::fmt::init(); + tracing_subscriber::fmt::try_init(); let config = ServerConfig { listen_on: "127.0.0.1:0".parse().unwrap(), cert: "tests/certs/xmpp.pem".parse().unwrap(), @@ -189,7 +189,7 @@ async fn scenario_basic() -> Result<()> { #[tokio::test] async fn terminate_socket() -> Result<()> { - tracing_subscriber::fmt::init(); + tracing_subscriber::fmt::try_init(); let config = ServerConfig { listen_on: "127.0.0.1:0".parse().unwrap(), cert: "tests/certs/xmpp.pem".parse().unwrap(),