1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-24 17:10:33 +00:00

fixed viewcount test again

This commit is contained in:
Christian Schabesberger 2016-03-04 13:51:50 +01:00
parent b1d2e64450
commit 0c716c12d7

View File

@ -43,7 +43,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
SearchEngine engine = ServiceList.getService("Youtube")
.getSearchEngineInstance(new Downloader());
result = engine.search("bla",
result = engine.search("lefloid",
0, "de", new Downloader()).getSearchResult();
suggestionReply = engine.suggestionList("hello","de",new Downloader());
}
@ -96,7 +96,7 @@ public class YoutubeSearchEngineTest extends AndroidTestCase {
// that specific link used for this test, there are no videos with less
// than 10.000 views, so we can test against that.
for(StreamPreviewInfo i : result.resultList) {
assertTrue(Long.toString(i.view_count), i.view_count >= 10000);
assertTrue(i.title + ": " + Long.toString(i.view_count), i.view_count >= 10000);
}
}