From 659d6aef4a2482ef0aa140db5c1732fe2baac25a Mon Sep 17 00:00:00 2001 From: xz-dev <32761048+xz-dev@users.noreply.github.com> Date: Tue, 27 Sep 2022 03:20:00 +0800 Subject: [PATCH] Update replyCount test for Youtube Co-authored-by: Tobi --- .../services/youtube/YoutubeCommentsExtractorTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java index 2574b1d36..1a3bc211c 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java @@ -339,7 +339,8 @@ public class YoutubeCommentsExtractorTest { CommentsInfoItem firstComment = comments.getItems().get(0); assertNotEquals(-1, firstComment.getReplyCount(), "First reply comment can't get count"); - assertNotEquals(0, firstComment.getReplyCount(), "First reply comment count is zero"); + assertGreater(300, firstComment.getReplyCount(), "First reply comment count is smaller than the expected 300 comments"); + } } }