Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
westy92 committed Apr 26, 2024
1 parent 4825e8f commit cce33b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
tokio-test = "0.4"
11 changes: 6 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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();
}
Expand Down

0 comments on commit cce33b3

Please sign in to comment.