fix(tests): dont ignore 404 error on rss feed

This commit is contained in:
ThetaDev 2024-01-29 18:51:08 +01:00
parent 9516eb7e38
commit 0a362f7129
No known key found for this signature in database
GPG key ID: 649CA4EBDC338394

View file

@ -1175,23 +1175,13 @@ mod channel_rss {
#[rstest]
fn get_channel_rss_empty(rp: RustyPipe) {
let channel = tokio_test::block_on(rp.query().channel_rss("UCAyFbMjB3qAQSZBj6NCuBSg"));
let channel =
tokio_test::block_on(rp.query().channel_rss("UCAyFbMjB3qAQSZBj6NCuBSg")).unwrap();
match channel {
Ok(channel) => {
assert_eq!(channel.id, "UCAyFbMjB3qAQSZBj6NCuBSg");
assert_eq!(channel.name, "Cheryl Calogero");
assert_eq!(channel.id, "UCAyFbMjB3qAQSZBj6NCuBSg");
assert_eq!(channel.name, "Cheryl Calogero");
assert!(channel.videos.is_empty());
}
Err(err) => {
assert!(
matches!(err, Error::Extraction(ExtractionError::NotFound { .. })),
"got: {}",
err
);
}
}
assert!(channel.videos.is_empty());
}
#[rstest]