mod fixtures; mod helpers; mod integration; use crate::helpers::ENV; use u_lib::config::MASTER_PORT; #[macro_use] extern crate rstest; #[tokio::test] async fn test_non_auth_connection_dropped() { let client = reqwest::ClientBuilder::new() .danger_accept_invalid_certs(true) .build() .unwrap(); match client .get(format!("https://{}:{}", &ENV.u_server, MASTER_PORT)) .send() .await { Err(e) => { let err = e.to_string(); println!("{err}"); assert!(err.contains("channel closed")) } _ => panic!("no error occured on foreign client connection"), } }