Skip to content

Commit c892cfa

Browse files
committed
Fix PeerTube tests
1 parent e1b94c4 commit c892cfa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/peertube/PeertubeCommentsExtractorTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,24 @@ public static class NestedComments {
133133
public static void setUp() throws Exception {
134134
NewPipe.init(DownloaderTestImpl.getInstance());
135135
extractor = (PeertubeCommentsExtractor) PeerTube
136-
.getCommentsExtractor("https://share.tube/w/vxu4uTstUBAUromWwXGHrq");
136+
.getCommentsExtractor("https://framatube.org/w/kkGMgK9ZtnKfYAgnEtQxbv");
137137
comments = extractor.getInitialPage();
138138
}
139139

140140
@Test
141141
void testGetComments() throws IOException, ExtractionException {
142142
assertFalse(comments.getItems().isEmpty());
143143
final Optional<CommentsInfoItem> nestedCommentHeadOpt =
144-
findCommentWithId("9770", comments.getItems());
144+
findCommentWithId("34293", comments.getItems());
145145
assertTrue(nestedCommentHeadOpt.isPresent());
146-
assertTrue(findNestedCommentWithId("9773", nestedCommentHeadOpt.get()), "The nested comment replies were not found");
146+
assertTrue(findNestedCommentWithId("34294", nestedCommentHeadOpt.get()), "The nested " +
147+
"comment replies were not found");
147148
}
148149

149150
@Test
150151
void testHasCreatorReply() {
151-
assertCreatorReply("9770", true);
152-
assertCreatorReply("9852", false);
153-
assertCreatorReply("11239", false);
152+
// NOTE: There is currently no creator replied comment
153+
assertCreatorReply("34293", false);
154154
}
155155

156156
private static void assertCreatorReply(final String id, final boolean expected) {

0 commit comments

Comments
 (0)