Skip to content

Commit

Permalink
Update tokio and re-enable check_site test
Browse files Browse the repository at this point in the history
The issue with the check_site test timing out seems to be related to
a similar reqwest issue (seanmonstar/reqwest#746). This was due to an
upstream bug in tokio and may be fixed in tokio 0.2.7 onward.
  • Loading branch information
samford committed Jan 8, 2020
1 parent b5a47d8 commit 62c4713
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 27 deletions.
26 changes: 13 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 13 additions & 14 deletions components/site/tests/site.rs
Expand Up @@ -684,17 +684,16 @@ fn can_ignore_markdown_content() {
assert!(!file_exists!(public, "posts/ignored/index.html"));
}

// 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");
//}
#[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");
}

0 comments on commit 62c4713

Please sign in to comment.