test: fix tests

This commit is contained in:
ThetaDev 2024-07-29 18:10:10 +02:00
parent 2c7a3fb5cc
commit 37a14aa9ce
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
3 changed files with 10 additions and 6 deletions

View file

@ -1264,7 +1264,11 @@ mod channel_rss {
#[rstest]
#[tokio::test]
async fn search(rp: RustyPipe, unlocalized: bool) {
let result = rp.query().search::<YouTubeItem, _>("testt").await.unwrap();
let result = rp
.query()
.search::<YouTubeItem, _>("arudino")
.await
.unwrap();
assert_gteo(
result.items.count,
@ -1273,7 +1277,7 @@ async fn search(rp: RustyPipe, unlocalized: bool) {
);
if unlocalized {
assert_eq!(result.corrected_query.as_deref(), Some("test"));
assert_eq!(result.corrected_query.as_deref(), Some("arduino"));
}
assert_next(result.items, rp.query(), 10, 2, true).await;