Skip to content

Commit 09c6822

Browse files
committed
Change youtube channel url test
1 parent b8bc57c commit 09c6822

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/search/YoutubeSearchExtractorChannelOnlyTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,8 @@ public void testOnlyContainChannels() {
6868
@Test
6969
public void testChannelUrl() {
7070
for(InfoItem item : itemsPage.getItems()) {
71-
if (item.getName().contains("PewDiePie")) {
71+
if (item.getName().equals("PewDiePie")) {
7272
assertEquals("https://www.youtube.com/channel/UC-lHJZR3Gqxm24_Vd_AJ5Yw", item.getUrl());
73-
break;
7473
} else {
7574
assertThat(item.getUrl(), CoreMatchers.startsWith("https://www.youtube.com/channel/"));
7675
}

0 commit comments

Comments
 (0)