Browse Source

prep actix-framed release

master
Nikolay Kim 7 months ago
parent
commit
7b3c99b933
3 changed files with 12 additions and 9 deletions
  1. +1
    -2
      actix-framed/Cargo.toml
  2. +4
    -0
      actix-framed/changes.md
  3. +7
    -7
      src/resource.rs

+ 1
- 2
actix-framed/Cargo.toml View File

@@ -13,7 +13,6 @@ categories = ["network-programming", "asynchronous",
"web-programming::websocket"]
license = "MIT/Apache-2.0"
edition = "2018"
workspace =".."

[lib]
name = "actix_framed"
@@ -22,7 +21,7 @@ path = "src/lib.rs"
[dependencies]
actix-codec = "0.2.0"
actix-service = "1.0.1"
actix-router = "0.2.0"
actix-router = "0.2.1"
actix-rt = "1.0.0"
actix-http = "1.0.1"



+ 4
- 0
actix-framed/changes.md View File

@@ -1,5 +1,9 @@
# Changes

## [0.3.0] - 2019-12-25

* Migrate to actix-http 1.0

## [0.2.1] - 2019-07-20

* Remove unneeded actix-utils dependency


+ 7
- 7
src/resource.rs View File

@@ -663,13 +663,13 @@ mod tests {

#[actix_rt::test]
async fn test_pattern() {
let mut srv =
init_service(App::new().service(web::resource(["/test", "/test2"]).to(|| {
async {
Ok::<_, Error>(HttpResponse::Ok())
}
})))
.await;
let mut srv = init_service(
App::new().service(
web::resource(["/test", "/test2"])
.to(|| async { Ok::<_, Error>(HttpResponse::Ok()) }),
),
)
.await;
let req = TestRequest::with_uri("/test").to_request();
let resp = call_service(&mut srv, req).await;
assert_eq!(resp.status(), StatusCode::OK);


Loading…
Cancel
Save