From cce33b3ada10fb215616ea24df637046f471da19 Mon Sep 17 00:00:00 2001 From: Seth Westphal Date: Thu, 25 Apr 2024 21:08:30 -0500 Subject: [PATCH] Update dependencies. --- Cargo.toml | 6 +++--- src/lib.rs | 11 ++++++----- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 50ee456..5012105 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,11 +19,11 @@ include = [ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -reqwest = { version = "0.11", features = ["json"] } -rustc_version_runtime = "0.2" +reqwest = { version = "0.12", features = ["json"] } +rustc_version_runtime = "0.3" serde = { version = "1", features = ["derive"] } tokio = { version = "1", features = ["full"] } [dev-dependencies] mockito = "1" -tokio-test = "0.4" \ No newline at end of file +tokio-test = "0.4" diff --git a/src/lib.rs b/src/lib.rs index caac58d..8150cce 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -340,10 +340,8 @@ mod tests { timezone: None, })); - if cfg!(target_os = "macos") { - assert_eq!("Can't process request: error sending request for url (http://localhost/events?adult=false): error trying to connect: tcp connect error: Connection refused (os error 61)", result.unwrap_err()); - } else if cfg!(target_os = "linux") { - assert_eq!("Can't process request: error sending request for url (http://localhost/events?adult=false): error trying to connect: tcp connect error: Connection refused (os error 111)", result.unwrap_err()); + if cfg!(target_os = "macos") || cfg!(target_os = "linux") { + assert_eq!("Can't process request: error sending request for url (http://localhost/events?adult=false)", result.unwrap_err()); } else { assert_eq!("Not Found", result.unwrap_err()); } @@ -366,7 +364,10 @@ mod tests { timezone: None, })); - assert_eq!("Can't parse response: error decoding response body: EOF while parsing an object at line 1 column 1", result.unwrap_err()); + assert_eq!( + "Can't parse response: error decoding response body", + result.unwrap_err() + ); mock.assert(); }