From 94b04ba9ba487c9433af46c8d8a3637b91478c41 Mon Sep 17 00:00:00 2001 From: JustTestingV Date: Sun, 18 Feb 2024 19:43:34 +0300 Subject: [PATCH] try_init --- crates/projection-xmpp/tests/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(),