diff --git a/Cargo.toml b/Cargo.toml index b8bd6efc..3634d8e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,7 @@ members = [ "actix-session", "actix-web-actors", "actix-web-codegen", + "test-server", ] [package.metadata.docs.rs] diff --git a/test-server/Cargo.toml b/test-server/Cargo.toml index 838f2d8d..16a99279 100644 --- a/test-server/Cargo.toml +++ b/test-server/Cargo.toml @@ -53,3 +53,7 @@ time = "0.1" tokio-tcp = "0.1" tokio-timer = "0.2" openssl = { version="0.10", optional = true } + +[dev-dependencies] +actix-web = "1.0.0-alpa.2" +actix-http = "0.1.0-alpa.2" diff --git a/test-server/src/lib.rs b/test-server/src/lib.rs index b64ff433..154345b4 100644 --- a/test-server/src/lib.rs +++ b/test-server/src/lib.rs @@ -36,7 +36,7 @@ use net2::TcpBuilder; /// ) /// ); /// -/// let req = srv.get(); +/// let req = srv.get("/"); /// let response = srv.block_on(req.send()).unwrap(); /// assert!(response.status().is_success()); /// }