Añade el servidor web actix-web

This commit is contained in:
Manuel Cillero 2022-02-10 23:12:53 +01:00
parent 6ed78e3934
commit 13a408ce61
9 changed files with 92 additions and 0 deletions

9
tests/health_check.rs Normal file
View file

@ -0,0 +1,9 @@
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();
}

1
tests/main.rs Normal file
View file

@ -0,0 +1 @@
mod health_check;