1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-07-03 20:45:46 +00:00

more patch cratesio

This commit is contained in:
Nikolay Kim 2019-04-02 14:47:59 -07:00
parent 00000fb316
commit db1f7651a3
2 changed files with 5 additions and 3 deletions

View file

@ -120,4 +120,8 @@ actix = { git = "https://github.com/actix/actix.git" }
actix-web = { path = "." }
actix-http = { path = "actix-http" }
actix-http-test = { path = "test-server" }
actix-web-codegen = { path = "actix-web-codegen" }
actix-web-actors = { path = "actix-web-actors" }
actix-session = { path = "actix-session" }
actix-files = { path = "actix-files" }
awc = { path = "awc" }

View file

@ -61,9 +61,7 @@ fn test_connection_close() {
.finish(|_| ok::<_, ()>(Response::Ok().body(STR)))
.map(|_| ())
});
let response = srv
.block_on(srv.get("/").close_connection().send())
.unwrap();
let response = srv.block_on(srv.get("/").force_close().send()).unwrap();
assert!(response.status().is_success());
}