diff --git a/src/main.rs b/src/main.rs index a079bca..64534e0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,11 +2,9 @@ use axum::{ Router, routing::{get, post}, }; -// use std::net::SocketAddr; use icarus_auth::callers; use icarus_auth::config; -// use sqlx::Postgres; #[tokio::main] async fn main() { @@ -52,14 +50,9 @@ mod tests { use super::*; use axum::{ body::Body, - // extract::connect_info::MockConnectInfo, http::{Request, StatusCode}, }; use http_body_util::BodyExt; - // use http_body_util::BodyExt; // for `collect` - // use serde_json::{Value, json}; - // use tokio::net::TcpListener; - // use tower::{Service, ServiceExt}; // for `call`, `oneshot`, and `ready` use tower::ServiceExt; // for `call`, `oneshot`, and `ready` #[tokio::test] @@ -80,23 +73,6 @@ mod tests { assert_eq!(response.status(), StatusCode::OK); - /* - match response.into_body().collect().await { - Ok(o) => { - let parsed: String = match String::from_utf8(o.to_bytes()) { - Ok(s) => s, - Err(err) => { - String::new() - } - }; - } - Err(err) => { - assert!(false, - "Error: {:?}", err.to_string()); - } - } - */ - let body = response.into_body().collect().await.unwrap().to_bytes(); assert_eq!(&body[..], b"Hello, World!"); }