Improve subreddit test
This commit is contained in:
parent
0ca0eefaa4
commit
49dde7ad72
@ -437,5 +437,6 @@ async fn subreddit(sub: &str, quarantined: bool) -> Result<Subreddit, String> {
|
|||||||
|
|
||||||
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
|
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
|
||||||
async fn test_fetching_subreddit() {
|
async fn test_fetching_subreddit() {
|
||||||
subreddit("rust", false).await.unwrap();
|
let subreddit = subreddit("rust", false).await;
|
||||||
|
assert!(subreddit.is_ok());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user