Skip to content

Commit

Permalink
Update mockito version and switch to async server
Browse files Browse the repository at this point in the history
  • Loading branch information
tyleragreen committed Jul 10, 2024
1 parent c98db07 commit b347187
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ lazy_static = "1.4.0" # for prost_build
heck = "0.5.0" # for prost_build
regex = "1.9.3" # for prost_build
mime = { version = "0.3.17", optional = true }
mockito = { version = "1.1.0", optional = true }
mockito = { version = "1.4.0", optional = true }
hyper-util = { version = "0.1.1", features = ["full"] }
http-body-util = "0.1.0"
tracing = "0.1.40"
Expand Down
2 changes: 1 addition & 1 deletion app/src/fetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ mod tests {
file.read_to_end(&mut buffer)
.expect("Failed to read the file");

let mut server = mockito::Server::new();
let mut server = mockito::Server::new_async().await;
let mock = server
.mock("GET", "/gtfs")
.with_status(200)
Expand Down

0 comments on commit b347187

Please sign in to comment.