This commit is contained in:
Jacob Hoffman-Andrews
2020-12-02 00:19:11 -08:00
committed by Martin Algesten
parent 18a9b08973
commit be6be7e600
2 changed files with 5 additions and 2 deletions

View File

@@ -254,7 +254,10 @@ fn io_error() {
let mut err = Error::new(ErrorKind::Io, Some("oops".to_string())).src(ioe);
err = err.url("http://example.com/".parse().unwrap());
assert_eq!(err.to_string(), "http://example.com/: Io: oops: too slow");
assert_eq!(
err.to_string(),
"http://example.com/: Network Error: oops: too slow"
);
}
#[test]