pagetop/tests/health_check.rs

9 lines
200 B
Rust

fn spawn_app() {
let server = pagetop::core::server::run().expect("Failed to bind address");
let _ = tokio::spawn(server);
}
#[tokio::test]
async fn health_check_works() {
spawn_app();
}