From 3751a4018e7a541ab81fdce60a7c3cd16c714e64 Mon Sep 17 00:00:00 2001 From: Darin Date: Fri, 20 Dec 2019 21:47:18 -0500 Subject: [PATCH] fixed test::init_service api docs (missing await) (#1230) --- src/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.rs b/src/test.rs index 5f5fdc487..2aa7e142b 100644 --- a/src/test.rs +++ b/src/test.rs @@ -66,7 +66,7 @@ pub fn default_service( /// let mut app = test::init_service( /// App::new() /// .service(web::resource("/test").to(|| async { HttpResponse::Ok() })) -/// ); +/// ).await; /// /// // Create request object /// let req = test::TestRequest::with_uri("/test").to_request();