This commit is contained in:
JustTestingV 2024-02-18 19:43:34 +03:00
parent 6ca62c0d86
commit 94b04ba9ba
1 changed files with 2 additions and 2 deletions

View File

@ -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(),