1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-08-31 03:20:20 +02:00
This commit is contained in:
Nikolay Kim
2018-04-18 20:16:29 -07:00
parent ce1081432b
commit 48b02abee7
4 changed files with 31 additions and 32 deletions

View File

@@ -916,7 +916,6 @@ fn test_resource_middlewares() {
// assert_eq!(num3.load(Ordering::Relaxed), 1);
}
fn index_test_middleware_async_error(_: HttpRequest) -> FutureResponse<HttpResponse> {
future::result(Err(error::ErrorBadRequest("TEST"))).responder()
}
@@ -936,7 +935,8 @@ fn test_middleware_async_error() {
start: Arc::clone(&act_req),
response: Arc::clone(&act_resp),
finish: Arc::clone(&act_fin),
}).handler(index_test_middleware_async_error)});
}).handler(index_test_middleware_async_error)
});
let request = srv.get().finish().unwrap();
let response = srv.execute(request.send()).unwrap();