mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-08 15:30:59 +00:00
Adjust tests
This commit is contained in:
parent
4faf40cfba
commit
d6b960368a
1 changed files with 13 additions and 3 deletions
|
|
@ -128,9 +128,19 @@ mod test_super {
|
|||
expected_map.insert(
|
||||
Input::Stdin,
|
||||
vec![
|
||||
website("http://example.com/failed"),
|
||||
website("http://example.com/redirect"),
|
||||
],
|
||||
Response {
|
||||
uri: website("http://example.com/failed"),
|
||||
status: Status::Failed(http::StatusCode::BAD_GATEWAY),
|
||||
source: Input::Stdin,
|
||||
},
|
||||
Response {
|
||||
uri: website("http://example.com/redirect"),
|
||||
status: Status::Redirected(http::StatusCode::PERMANENT_REDIRECT),
|
||||
source: Input::Stdin,
|
||||
},
|
||||
]
|
||||
.into_iter()
|
||||
.collect::<HashSet<_>>(),
|
||||
);
|
||||
assert_eq!(stats.fail_map, expected_map);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue