Skip to content

Commit b029779

Browse files
committed
[media.cc.de] Disable unreliable tests for now
1 parent bbee154 commit b029779

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCLiveStreamListExtractorTest.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
import java.util.List;
1111

12-
import static org.junit.Assert.assertNotNull;
13-
import static org.junit.Assert.assertTrue;
1412
import static org.schabi.newpipe.extractor.ServiceList.MediaCCC;
1513

1614
public class MediaCCCLiveStreamListExtractorTest {
@@ -23,15 +21,10 @@ public static void setUpClass() throws Exception {
2321
extractor.fetchPage();
2422
}
2523

26-
2724
@Test
2825
public void getConferencesListTest() throws Exception {
29-
final List<InfoItem> a = extractor.getInitialPage().getItems();
30-
for (int i = 0; i < a.size(); i++) {
31-
final InfoItem b = a.get(i);
32-
assertNotNull(a.get(i).getName());
33-
assertTrue(a.get(i).getName().length() >= 1);
34-
}
26+
final List<InfoItem> items = extractor.getInitialPage().getItems();
27+
// just test if there is an exception thrown
3528
}
3629

3730
}

extractor/src/test/java/org/schabi/newpipe/extractor/services/media_ccc/MediaCCCRecentListExtractorTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public void testStreamList() throws Exception {
3232
for (final StreamInfoItem item: items) {
3333
assertFalse(isNullOrEmpty(item.getName()));
3434
assertTrue(item.getDuration() > 0);
35-
assertTrue(item.getUploadDate().offsetDateTime().isBefore(OffsetDateTime.now()));
35+
// Disabled for now, because sometimes videos are uploaded, but their release date is in the future
36+
// assertTrue(item.getUploadDate().offsetDateTime().isBefore(OffsetDateTime.now()));
3637
}
3738
}
3839

0 commit comments

Comments
 (0)