Skip to content

Commit

Permalink
Fixing the test that [email protected] breaks. (#579)
Browse files Browse the repository at this point in the history
- Updated wiremock to 0.6.0
- Fixed the one test broken by the update
  • Loading branch information
manchicken authored Feb 15, 2024
1 parent 2d35480 commit b116c3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ tokio = { version = "1.17.0", default-features = false, features = [
"time",
] }
tokio-test = "0.4.2"
wiremock = "0.5.3"
wiremock = "0.6.0"
crypto_box = { version = "0.8.2", features = ["seal"] }
base64 = "0.21.2"
pretty_assertions = "1.4.0"
Expand Down
6 changes: 2 additions & 4 deletions tests/follow_redirect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,8 @@ async fn setup_api(template: ResponseTemplate) -> MockServer {
.respond_with(
ResponseTemplate::new(301).append_header(
"location",
HeaderValue::from_bytes(
format!("/repos/{new_owner}/{repo}/stargazers").into_bytes(),
)
.unwrap(),
HeaderValue::from_bytes(format!("/repos/{new_owner}/{repo}/stargazers").as_bytes())
.unwrap(),
),
)
.mount(&mock_server)
Expand Down

0 comments on commit b116c3e

Please sign in to comment.