/health_check with integration test implemented
This commit is contained in:
9
src/main.rs
Normal file
9
src/main.rs
Normal file
@ -0,0 +1,9 @@
|
||||
use std::net::TcpListener;
|
||||
|
||||
use zero2prod::run;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
let listener = TcpListener::bind("127.0.0.1:8000").expect("Failed to bind random port");
|
||||
run(listener)?.await
|
||||
}
|
||||
Reference in New Issue
Block a user