Fix test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Valentin Brandl 2020-11-24 19:24:35 +01:00
parent 14cd21dc1c
commit f41fbc8baf

View File

@ -37,7 +37,9 @@ macro_rules! test_service {
#[actix_rt::test]
async fn test_index() {
let mut app = test::init_service(App::new().service(index)).await;
std::env::set_var("HOC_BASE_URL", "http://0.0.0.0:8080");
let mut app = test_app!(index);
let req = dbg!(test::TestRequest::with_uri("/").to_request());
let resp = dbg!(test::call_service(&mut app, req).await);