Fix YouTube subscriber count

Modify test to fail on too small subscriber count
This commit is contained in:
TobiGr
2019-09-16 23:15:54 +02:00
parent dbdd9ed083
commit 06016d1ae3
3 changed files with 35 additions and 3 deletions

View File

@@ -105,6 +105,7 @@ public class YoutubeChannelExtractorTest {
@Test
public void testSubscriberCount() throws Exception {
assertTrue("Wrong subscriber count", extractor.getSubscriberCount() >= 0);
assertTrue("Subscriber count too small", extractor.getSubscriberCount() >= 4e6);
}
}
@@ -195,6 +196,7 @@ public class YoutubeChannelExtractorTest {
@Test
public void testSubscriberCount() throws Exception {
assertTrue("Wrong subscriber count", extractor.getSubscriberCount() >= 0);
assertTrue("Subscriber count too small", extractor.getSubscriberCount() >= 10e6);
}
}