Skip to content

Commit a3a0c1e

Browse files
committed
Fixed YoutubeCommentsExtractorTest
Old video was deleted / set to private
1 parent 5c288eb commit a3a0c1e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeCommentsExtractorTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public void testGetCommentsFirst() throws IOException, ExtractionException {
308308
}
309309

310310
public static class RepliesTest {
311-
private final static String url = "https://www.youtube.com/watch?v=--yeOvJGZQk";
311+
private final static String url = "https://www.youtube.com/watch?v=xaQJbozY_Is";
312312
private static YoutubeCommentsExtractor extractor;
313313

314314
@BeforeClass
@@ -329,9 +329,11 @@ public void testGetCommentsFirstReplies() throws IOException, ExtractionExceptio
329329

330330
CommentsInfoItem firstComment = comments.getItems().get(0);
331331

332+
assertTrue("First comment isn't pinned", firstComment.isPinned());
333+
332334
InfoItemsPage<CommentsInfoItem> replies = extractor.getPage(firstComment.getReplies());
333335

334-
assertEquals("First reply comment did not match", "Lol", replies.getItems().get(0).getCommentText());
336+
assertEquals("First reply comment did not match", "First", replies.getItems().get(0).getCommentText());
335337
}
336338
}
337339
}

0 commit comments

Comments
 (0)