Update actix-web and tokio
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Valentin Brandl
2021-09-03 13:13:03 +02:00
parent dff8151938
commit bcb5650cc9
7 changed files with 283 additions and 691 deletions

View File

@ -1,12 +1,10 @@
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 client = awc::Client::default();
let response = client
.get(&format!("{}/github/vbrandl/hoc", test_app.address))

View File

@ -1,12 +1,10 @@
mod util;
use actix_web::client;
#[actix_rt::test]
async fn health_check_works() {
let test_app = util::spawn_app().await;
let client = client::Client::default();
let client = awc::Client::default();
let response = client
.get(&format!("{}/health_check", test_app.address))

View File

@ -1,12 +1,10 @@
mod util;
use actix_web::client;
#[actix_rt::test]
async fn index_returns_success() {
let test_app = util::spawn_app().await;
let client = client::Client::default();
let client = awc::Client::default();
let response = client
.get(&format!("{}/", test_app.address))

View File

@ -1,12 +1,10 @@
mod util;
use actix_web::client;
#[actix_rt::test]
async fn json_returns_success() {
let test_app = util::spawn_app().await;
let client = client::Client::default();
let client = awc::Client::default();
let response = client
.get(&format!("{}/github/vbrandl/hoc/json", test_app.address))