fix flaky test(s)

This commit is contained in:
Devrim Şahin authored and Martin Algesten committed 2023-05-12 20:13:14 +02:00
1 parent 11a8eb470c
commit c305b915f8
1 file changed
+3 -3
+3 -3
View File
@@ -569,7 +569,7 @@ mod tests {
let resp = agent.get("http://www.google.com/").call().unwrap(); let resp = agent.get("http://www.google.com/").call().unwrap();
assert_eq!( assert_eq!(
"text/html;charset=ISO-8859-1", "text/html;charset=ISO-8859-1",
resp.header("content-type").unwrap() resp.header("content-type").unwrap().replace("; ", ";")
); );
assert_eq!("text/html", resp.content_type()); assert_eq!("text/html", resp.content_type());
} }
@@ -582,7 +582,7 @@ mod tests {
let resp = agent.get("https://www.google.com/").call().unwrap(); let resp = agent.get("https://www.google.com/").call().unwrap();
assert_eq!( assert_eq!(
"text/html;charset=ISO-8859-1", "text/html;charset=ISO-8859-1",
resp.header("content-type").unwrap() resp.header("content-type").unwrap().replace("; ", ";")
); );
assert_eq!("text/html", resp.content_type()); assert_eq!("text/html", resp.content_type());
} }
@@ -598,7 +598,7 @@ mod tests {
let resp = agent.get("https://www.google.com/").call().unwrap(); let resp = agent.get("https://www.google.com/").call().unwrap();
assert_eq!( assert_eq!(
"text/html;charset=ISO-8859-1", "text/html;charset=ISO-8859-1",
resp.header("content-type").unwrap() resp.header("content-type").unwrap().replace("; ", ";")
); );
assert_eq!("text/html", resp.content_type()); assert_eq!("text/html", resp.content_type());
} }