From c167859672637762603c30700731a348e4348fe0 Mon Sep 17 00:00:00 2001 From: Matthew Esposito Date: Sun, 21 Jul 2024 14:21:14 -0400 Subject: [PATCH] test(client): add test for gated and quarantined --- src/subreddit.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/subreddit.rs b/src/subreddit.rs index 6ea65d7..5d05f96 100644 --- a/src/subreddit.rs +++ b/src/subreddit.rs @@ -515,3 +515,11 @@ async fn test_fetching_subreddit() { let subreddit = subreddit("rust", false).await; assert!(subreddit.is_ok()); } + +#[tokio::test(flavor = "multi_thread")] +async fn test_gated_and_quarantined() { + let quarantined = subreddit("edgy", true).await; + assert!(quarantined.is_ok()); + let gated = subreddit("drugs", true).await; + assert!(gated.is_ok()); +}