hoc/tests/health_check.rs
Valentin Brandl 1ef65037a1
All checks were successful
continuous-integration/drone/push Build is passing
Update actix-web and tokio
2021-09-03 13:00:38 +02:00

17 lines
359 B
Rust

mod util;
#[actix_rt::test]
async fn health_check_works() {
let test_app = util::spawn_app().await;
let client = awc::Client::default();
let response = client
.get(&format!("{}/health_check", test_app.address))
.send()
.await
.expect("Failed to execute request");
assert!(response.status().is_success());
}