fix flaky test(s)
This commit is contained in:
committed by
Martin Algesten
parent
11a8eb470c
commit
c305b915f8
12
src/lib.rs
12
src/lib.rs
@@ -568,8 +568,8 @@ 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());
|
||||||
}
|
}
|
||||||
@@ -581,8 +581,8 @@ 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());
|
||||||
}
|
}
|
||||||
@@ -597,8 +597,8 @@ 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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user