mirror of https://github.com/fafhrd91/actix-web
fixed test::init_service api docs (missing await) (#1230)
This commit is contained in:
parent
0cb1b0642f
commit
3751a4018e
|
@ -66,7 +66,7 @@ pub fn default_service(
|
||||||
/// let mut app = test::init_service(
|
/// let mut app = test::init_service(
|
||||||
/// App::new()
|
/// App::new()
|
||||||
/// .service(web::resource("/test").to(|| async { HttpResponse::Ok() }))
|
/// .service(web::resource("/test").to(|| async { HttpResponse::Ok() }))
|
||||||
/// );
|
/// ).await;
|
||||||
///
|
///
|
||||||
/// // Create request object
|
/// // Create request object
|
||||||
/// let req = test::TestRequest::with_uri("/test").to_request();
|
/// let req = test::TestRequest::with_uri("/test").to_request();
|
||||||
|
|
Loading…
Reference in New Issue