Skip to content

Commit

Permalink
test(pkarr): remove bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuhvi committed Nov 14, 2024
1 parent 6a6c40b commit 3c704a5
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions pkarr/src/extra/reqwest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,3 @@ async fn resolve(

Ok(Box::new(format!("{name}:0").to_socket_addrs().unwrap()))
}

#[cfg(test)]
mod tests {
use axum::{response::Html, routing::get, Router};
use rand::Rng;
use std::net::SocketAddr;

#[tokio::test]
async fn http() {
// Define the route and handler
let app = Router::new().route("/", get(handler));

let port: u16 = rand::thread_rng().gen();

let addr = SocketAddr::from(([127, 0, 0, 1], port));

axum_server::bind(addr)
.serve(app.into_make_service())
.await
.unwrap();

async fn handler() -> Html<&'static str> {
Html("Hello, World!")
}
}
}

0 comments on commit 3c704a5

Please sign in to comment.