From a2d4ff157ea981a09d56e4284fd484e88a5c498d Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 28 Jan 2020 08:09:46 +0900 Subject: [PATCH] Update `call_service` documentation (#1302) Co-authored-by: Christian Battaglia --- src/test.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/test.rs b/src/test.rs index bb0d05cf..95698053 100644 --- a/src/test.rs +++ b/src/test.rs @@ -95,11 +95,10 @@ where /// Calls service and waits for response future completion. /// /// ```rust -/// use actix_web::{test, App, HttpResponse, http::StatusCode}; -/// use actix_service::Service; +/// use actix_web::{test, web, App, HttpResponse, http::StatusCode}; /// -/// #[test] -/// fn test_response() { +/// #[actix_rt::test] +/// async fn test_response() { /// let mut app = test::init_service( /// App::new() /// .service(web::resource("/test").to(|| async {