2021-03-22 13:34:26 +01:00
|
|
|
mod util;
|
|
|
|
|
|
|
|
#[actix_rt::test]
|
|
|
|
async fn badge_succeeds() {
|
|
|
|
let test_app = util::spawn_app().await;
|
|
|
|
|
2021-09-03 13:13:03 +02:00
|
|
|
let client = awc::Client::default();
|
2021-03-22 13:34:26 +01:00
|
|
|
|
|
|
|
let response = client
|
|
|
|
.get(&format!("{}/github/vbrandl/hoc", test_app.address))
|
|
|
|
.send()
|
|
|
|
.await
|
|
|
|
.expect("Failed to execute request");
|
|
|
|
|
|
|
|
assert!(response.status().is_success());
|
|
|
|
}
|