Añade el servidor web actix-web
This commit is contained in:
parent
6ed78e3934
commit
13a408ce61
9 changed files with 92 additions and 0 deletions
9
tests/health_check.rs
Normal file
9
tests/health_check.rs
Normal 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
1
tests/main.rs
Normal file
|
|
@ -0,0 +1 @@
|
|||
mod health_check;
|
||||
Loading…
Add table
Add a link
Reference in a new issue