Skip to content

Commit ff301c9

Browse files
GuillaumeGomezsyphar
authored andcommitted
Update home_page_links test to accept "#" href
1 parent 0fefe49 commit ff301c9

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/web/releases.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,12 +1489,13 @@ mod tests {
14891489
continue;
14901490
}
14911491

1492-
let resp = if url.starts_with("http://") || url.starts_with("https://") {
1493-
// Skip external links
1494-
continue;
1495-
} else {
1496-
web.get(&url).send()?
1497-
};
1492+
let resp =
1493+
if url.starts_with("http://") || url.starts_with("https://") || url == "#" {
1494+
// Skip external links
1495+
continue;
1496+
} else {
1497+
web.get(&url).send()?
1498+
};
14981499
let status = resp.status();
14991500
assert!(status.is_success(), "failed to GET {}: {}", url, status);
15001501
}

0 commit comments

Comments
 (0)