From 49dde7ad7257944dace7e96f2727bfc2c7b5c3dd Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Thu, 8 Jun 2023 14:06:58 -0400 Subject: [PATCH] Improve subreddit test --- src/subreddit.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/subreddit.rs b/src/subreddit.rs index 05bbd64..1a9b921 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -437,5 +437,6 @@ async fn subreddit(sub: &str, quarantined: bool) -> Result { #[tokio::test(flavor = "multi_thread", worker_threads = 1)] async fn test_fetching_subreddit() { - subreddit("rust", false).await.unwrap(); + let subreddit = subreddit("rust", false).await; + assert!(subreddit.is_ok()); }