From b116c3ebd2ec4e8b2558935bd7a40e002238543e Mon Sep 17 00:00:00 2001 From: Mike Stemle Date: Thu, 15 Feb 2024 03:50:20 -0500 Subject: [PATCH] Fixing the test that `wiremock@v0.6.0` breaks. (#579) - Updated wiremock to 0.6.0 - Fixed the one test broken by the update --- Cargo.toml | 2 +- tests/follow_redirect.rs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 72f49a90..7eefc265 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/tests/follow_redirect.rs b/tests/follow_redirect.rs index 95bc4e20..0dc53639 100644 --- a/tests/follow_redirect.rs +++ b/tests/follow_redirect.rs @@ -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)