Skip to content

Commit

Permalink
fix: remove flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaxbits committed Apr 17, 2024
1 parent 8ed7f7b commit 164d500
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/feed/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ pub async fn get_feed_description(url: &str) -> Result<String, Box<dyn std::erro

#[cfg(test)]
mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
use super::*;

#[tokio::test]
Expand All @@ -73,20 +72,4 @@ mod tests {
vihart
);
}

#[tokio::test]
async fn test_image() {
let image = "https://yt3.ggpht.com/ytc/AMLnZu_ZK-GvsGbsEaBYo0q_u3NvSSDT__vlljY7nJohDg=s900-c-k-c0x00ffffff-no-rj";
assert_eq!(
get_feed_image(&format!(
"https://www.youtube.com/channel/{}",
get_channel_id("https://www.youtube.com/c/OstonCodeCypher")
.await
.unwrap()
))
.await
.unwrap(),
image
);
}
}

0 comments on commit 164d500

Please sign in to comment.