Skip to content

Commit

Permalink
fix dev dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Apr 2, 2019
1 parent db1f765 commit 4227cdd
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-web"
version = "1.0.0-alpha.3"
version = "1.0.0-alpha.2"
authors = ["Nikolay Kim <[email protected]>"]
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
readme = "README.md"
Expand Down
4 changes: 2 additions & 2 deletions actix-files/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ impl<P> FromRequest<P> for PathBufWrp {
type Future = Result<Self, Self::Error>;

fn from_request(req: &mut ServiceFromRequest<P>) -> Self::Future {
PathBufWrp::get_pathbuf(req.match_info().path())
PathBufWrp::get_pathbuf(req.request().match_info().path())
}
}

Expand Down Expand Up @@ -1049,7 +1049,7 @@ mod tests {
.new_service(&()),
)
.unwrap();
let req = TestRequest::with_uri("/missing").to_service();
let req = TestRequest::with_uri("/missing").to_srv_request();

let mut resp = test::call_success(&mut st, req);
assert_eq!(resp.status(), StatusCode::OK);
Expand Down
2 changes: 1 addition & 1 deletion actix-http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "actix-http"
version = "0.1.0-alpha.3"
version = "0.1.0-alpha.2"
authors = ["Nikolay Kim <[email protected]>"]
description = "Actix http primitives"
readme = "README.md"
Expand Down
2 changes: 2 additions & 0 deletions actix-session/src/cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ mod tests {
let request = test::TestRequest::get().to_request();
let response = test::block_on(app.call(request)).unwrap();
assert!(response
.response()
.cookies()
.find(|c| c.name() == "actix-session")
.is_some());
Expand All @@ -352,6 +353,7 @@ mod tests {
let request = test::TestRequest::get().to_request();
let response = test::block_on(app.call(request)).unwrap();
assert!(response
.response()
.cookies()
.find(|c| c.name() == "actix-session")
.is_some());
Expand Down
2 changes: 1 addition & 1 deletion actix-session/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ mod tests {

#[test]
fn session() {
let mut req = test::TestRequest::default().to_service();
let mut req = test::TestRequest::default().to_srv_request();

Session::set_session(
vec![("key".to_string(), "\"value\"".to_string())].into_iter(),
Expand Down
2 changes: 1 addition & 1 deletion actix-web-actors/src/ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pub fn handshake(req: &HttpRequest) -> Result<HttpResponseBuilder, HandshakeErro
}

// Upgrade connection
if !req.upgrade() {
if !req.head().upgrade() {
return Err(HandshakeError::NoConnectionUpgrade);
}

Expand Down
2 changes: 1 addition & 1 deletion awc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "awc"
version = "0.1.0-alpha.3"
version = "0.1.0-alpha.2"
authors = ["Nikolay Kim <[email protected]>"]
description = "Actix http client."
readme = "README.md"
Expand Down
12 changes: 6 additions & 6 deletions awc/tests/test_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ fn test_simple() {
});

let request = srv.get("/").header("x-test", "111").send();
let response = srv.block_on(request).unwrap();
let mut response = srv.block_on(request).unwrap();
assert!(response.status().is_success());

// read response
let bytes = srv.block_on(response.body()).unwrap();
assert_eq!(bytes, Bytes::from_static(STR.as_ref()));

let response = srv.block_on(srv.post("/").send()).unwrap();
let mut response = srv.block_on(srv.post("/").send()).unwrap();
assert!(response.status().is_success());

// read response
Expand Down Expand Up @@ -177,7 +177,7 @@ fn test_client_gzip_encoding() {
});

// client request
let response = srv.block_on(srv.post("/").send()).unwrap();
let mut response = srv.block_on(srv.post("/").send()).unwrap();
assert!(response.status().is_success());

// read response
Expand All @@ -200,7 +200,7 @@ fn test_client_gzip_encoding_large() {
});

// client request
let response = srv.block_on(srv.post("/").send()).unwrap();
let mut response = srv.block_on(srv.post("/").send()).unwrap();
assert!(response.status().is_success());

// read response
Expand Down Expand Up @@ -229,7 +229,7 @@ fn test_client_gzip_encoding_large_random() {
});

// client request
let response = srv.block_on(srv.post("/").send_body(data.clone())).unwrap();
let mut response = srv.block_on(srv.post("/").send_body(data.clone())).unwrap();
assert!(response.status().is_success());

// read response
Expand All @@ -253,7 +253,7 @@ fn test_client_brotli_encoding() {
});

// client request
let response = srv.block_on(srv.post("/").send_body(STR)).unwrap();
let mut response = srv.block_on(srv.post("/").send_body(STR)).unwrap();
assert!(response.status().is_success());

// read response
Expand Down

0 comments on commit 4227cdd

Please sign in to comment.