mirror of
https://github.com/LukeMathWalker/zero-to-production.git
synced 2025-01-20 22:08:06 +00:00
Remove actix_rt dependency.
This commit is contained in:
parent
af9bf0115c
commit
28d438b478
3 changed files with 1 additions and 3 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -1664,7 +1664,6 @@ dependencies = [
|
||||||
name = "zero2prod"
|
name = "zero2prod"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-rt",
|
|
||||||
"actix-web",
|
"actix-web",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
"tokio",
|
"tokio",
|
||||||
|
|
|
@ -16,6 +16,5 @@ name = "zero2prod"
|
||||||
actix-web = "=4.0.0-beta.15"
|
actix-web = "=4.0.0-beta.15"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
actix-rt = "2"
|
|
||||||
reqwest = "0.11"
|
reqwest = "0.11"
|
||||||
tokio = "1"
|
tokio = "1"
|
||||||
|
|
|
@ -11,7 +11,7 @@ fn spawn_app() -> String {
|
||||||
format!("http://127.0.0.1:{}", port)
|
format!("http://127.0.0.1:{}", port)
|
||||||
}
|
}
|
||||||
|
|
||||||
#[actix_rt::test]
|
#[actix_web::test]
|
||||||
async fn health_check_works() {
|
async fn health_check_works() {
|
||||||
// Arrange
|
// Arrange
|
||||||
let address = spawn_app();
|
let address = spawn_app();
|
||||||
|
|
Loading…
Reference in a new issue