Browse Source

Disable check_site test for now

index-subcmd
Vincent Prouillet 4 years ago
parent
commit
44a07a4a55
1 changed files with 14 additions and 13 deletions
  1. +14
    -13
      components/site/tests/site.rs

+ 14
- 13
components/site/tests/site.rs View File

@@ -684,16 +684,17 @@ fn can_ignore_markdown_content() {
assert!(!file_exists!(public, "posts/ignored/index.html"));
}

#[test]
fn check_site() {
let (mut site, _tmp_dir, _public) = build_site("test_site");

assert_eq!(
site.config.link_checker.skip_anchor_prefixes,
vec!["https://github.com/rust-lang/rust/blob/"]
);
assert_eq!(site.config.link_checker.skip_prefixes, vec!["http://[2001:db8::]/"]);

site.config.enable_check_mode();
site.load().expect("link check test_site");
}
// Can timeout CI https://github.com/getzola/zola/issues/908
//#[test]
//fn check_site() {
// let (mut site, _tmp_dir, _public) = build_site("test_site");
//
// assert_eq!(
// site.config.link_checker.skip_anchor_prefixes,
// vec!["https://github.com/rust-lang/rust/blob/"]
// );
// assert_eq!(site.config.link_checker.skip_prefixes, vec!["http://[2001:db8::]/"]);
//
// site.config.enable_check_mode();
// site.load().expect("link check test_site");
//}

Loading…
Cancel
Save