hoc/tests/badge.rs
Valentin Brandl 5c8e3fa35d
All checks were successful
continuous-integration/drone/push Build is passing
Add badge test
2021-03-22 13:34:26 +01:00

19 lines
388 B
Rust

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