From 6571dfef82248a7172729e280bf4150aa12a8d49 Mon Sep 17 00:00:00 2001 From: Taisei Mima Date: Thu, 9 Mar 2023 10:16:35 +0900 Subject: [PATCH] fix test for forms/form (#610) --- forms/form/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/forms/form/src/main.rs b/forms/form/src/main.rs index e300ad70..afbb079e 100644 --- a/forms/form/src/main.rs +++ b/forms/form/src/main.rs @@ -119,7 +119,7 @@ mod tests { name: "John".to_string(), }) .to_request(); - let resp: ServiceResponse = app.call(req).await.unwrap(); + let resp: ServiceResponse = test::call_service(&app, req).await; assert_eq!(resp.status(), StatusCode::OK); assert_eq!( @@ -164,7 +164,7 @@ mod tests { name: "John".to_string(), }) .to_request(); - let resp: ServiceResponse = app.call(req).await.unwrap(); + let resp: ServiceResponse = test::call_service(&app, req).await; assert_eq!(resp.status(), StatusCode::OK); assert_eq!( @@ -208,7 +208,7 @@ mod tests { name: "John".to_string(), }) .to_request(); - let resp: ServiceResponse = app.call(req).await.unwrap(); + let resp: ServiceResponse = test::call_service(&app, req).await; assert_eq!(resp.status(), StatusCode::OK); assert_eq!(