From 09c6822b1d9a3d5166638b60fdfc532ef042b447 Mon Sep 17 00:00:00 2001 From: Stypox Date: Mon, 12 Aug 2019 13:13:41 +0200 Subject: [PATCH] Change youtube channel url test --- .../youtube/search/YoutubeSearchExtractorChannelOnlyTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorChannelOnlyTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorChannelOnlyTest.java index 1cb6e39b9..70d39777a 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorChannelOnlyTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorChannelOnlyTest.java @@ -68,9 +68,8 @@ public class YoutubeSearchExtractorChannelOnlyTest extends YoutubeSearchExtracto @Test public void testChannelUrl() { for(InfoItem item : itemsPage.getItems()) { - if (item.getName().contains("PewDiePie")) { + if (item.getName().equals("PewDiePie")) { assertEquals("https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw", item.getUrl()); - break; } else { assertThat(item.getUrl(), CoreMatchers.startsWith("https://www.youtube.com/channel/")); }