mirror of https://github.com/fafhrd91/actix-web
Update scope.rs
This commit is contained in:
parent
83e9340a15
commit
560838849a
|
@ -1035,8 +1035,6 @@ mod tests {
|
|||
assert_eq!(resp.status(), StatusCode::OK);
|
||||
}
|
||||
|
||||
// allow deprecated App::data
|
||||
#[allow(deprecated)]
|
||||
#[actix_rt::test]
|
||||
async fn test_override_data_default_service() {
|
||||
let srv = init_service(App::new().data(1usize).service(
|
||||
|
@ -1054,6 +1052,8 @@ mod tests {
|
|||
assert_eq!(resp.status(), StatusCode::OK);
|
||||
}
|
||||
|
||||
// allow deprecated App::data
|
||||
#[allow(deprecated)]
|
||||
#[actix_rt::test]
|
||||
async fn test_override_app_data() {
|
||||
let srv = init_service(App::new().app_data(web::Data::new(1usize)).service(
|
||||
|
|
Loading…
Reference in New Issue