Ignore tests that need access to the host system.

This commit is contained in:
Jordan Petridis 2018-03-12 03:35:07 +02:00
parent dbbb4e589e
commit 285291b2ed
No known key found for this signature in database
GPG Key ID: CEABAD9F5683B9A6
2 changed files with 4 additions and 0 deletions

View File

@ -318,6 +318,8 @@ mod tests {
} }
#[test] #[test]
// This test needs access to local system so we ignore it by default.
#[ignore]
fn test_get_dl_folder() { fn test_get_dl_folder() {
let foo_ = format!("{}/{}", DL_DIR.to_str().unwrap(), "foo"); let foo_ = format!("{}/{}", DL_DIR.to_str().unwrap(), "foo");
assert_eq!(get_download_folder("foo").unwrap(), foo_); assert_eq!(get_download_folder("foo").unwrap(), foo_);

View File

@ -174,6 +174,8 @@ mod tests {
} }
#[test] #[test]
// This test needs access to local system so we ignore it by default.
#[ignore]
fn test_dl_steal_the_stars() { fn test_dl_steal_the_stars() {
let url = let url =
"https://web.archive.org/web/20180120104957if_/https://rss.art19.com/steal-the-stars"; "https://web.archive.org/web/20180120104957if_/https://rss.art19.com/steal-the-stars";