Skip to content

Commit

Permalink
handle edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
skarimo committed Feb 26, 2024
1 parent 22a6047 commit ec128df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/scenarios/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,6 @@ fn request_sent(world: &mut DatadogWorld) {

#[when(regex = r"^the request with pagination is sent$")]
fn request_with_pagination_sent(world: &mut DatadogWorld) {
log::debug!("yoooooooo");
world
.function_mappings
.get(&format!(
Expand Down Expand Up @@ -541,15 +540,16 @@ fn req_eq(lhs: &vcr_cassette::Request, rhs: &vcr_cassette::Request) -> bool {
.query()
.unwrap_or_default()
.split("&")
.into_iter()
.map(|s: &str| s.replace("+", "%20"))
.collect();
let rhs_queries: HashSet<_> = rhs
.uri
.query()
.unwrap_or_default()
.split("&")
.into_iter()
.map(|s: &str| s.replace("+", "%20"))
.collect();

lhs.uri.scheme() == rhs.uri.scheme()
&& lhs.uri.host() == rhs.uri.host()
&& lhs.uri.port() == rhs.uri.port()
Expand Down

0 comments on commit ec128df

Please sign in to comment.