🔥 Remove unwrap usage to improve new apps setup
This commit is contained in:
parent
b7cb4363bd
commit
d66063a1f7
6 changed files with 79 additions and 60 deletions
|
|
@ -6,7 +6,7 @@ impl PackageTrait for HealthCheck {}
|
|||
|
||||
#[pagetop::test]
|
||||
async fn health_check_works() {
|
||||
let app = service::test::init_service(Application::prepare(&HealthCheck).unwrap().test()).await;
|
||||
let app = service::test::init_service(Application::prepare(&HealthCheck).test()).await;
|
||||
let req = service::test::TestRequest::get().uri("/").to_request();
|
||||
let _resp = service::test::call_service(&app, req).await;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue