Skip to content

Commit

Permalink
fix flaky test(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubuzetto authored and algesten committed May 12, 2023
1 parent 11a8eb4 commit c305b91
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -568,8 +568,8 @@ mod tests {

let resp = agent.get("http://www.google.com/").call().unwrap();
assert_eq!(
"text/html; charset=ISO-8859-1",
resp.header("content-type").unwrap()
"text/html;charset=ISO-8859-1",
resp.header("content-type").unwrap().replace("; ", ";")
);
assert_eq!("text/html", resp.content_type());
}
Expand All @@ -581,8 +581,8 @@ mod tests {

let resp = agent.get("https://www.google.com/").call().unwrap();
assert_eq!(
"text/html; charset=ISO-8859-1",
resp.header("content-type").unwrap()
"text/html;charset=ISO-8859-1",
resp.header("content-type").unwrap().replace("; ", ";")
);
assert_eq!("text/html", resp.content_type());
}
Expand All @@ -597,8 +597,8 @@ mod tests {

let resp = agent.get("https://www.google.com/").call().unwrap();
assert_eq!(
"text/html; charset=ISO-8859-1",
resp.header("content-type").unwrap()
"text/html;charset=ISO-8859-1",
resp.header("content-type").unwrap().replace("; ", ";")
);
assert_eq!("text/html", resp.content_type());
}
Expand Down

0 comments on commit c305b91

Please sign in to comment.