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();