Skip to content

Commit 69de96f

Browse files
litetexStypox
authored andcommitted
Failing test works locally without any problems. Reformatted it a bit.
1 parent 7651155 commit 69de96f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -254,15 +254,14 @@ public static void setUp() throws Exception {
254254
@Override public String expectedSearchString() { return QUERY; }
255255
@Override public String expectedSearchSuggestion() { return null; }
256256
@Override public List<MetaInfo> expectedMetaInfo() throws MalformedURLException {
257-
final List<URL> urls = new ArrayList<>();
258-
urls.add(new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019"));
259-
final List<String> urlTexts = new ArrayList<>();
260-
urlTexts.add("LEARN MORE");
261257
return Collections.singletonList(new MetaInfo(
262258
"COVID-19",
263-
new Description("Get the latest information from the WHO about coronavirus.", Description.PLAIN_TEXT),
264-
urls,
265-
urlTexts
259+
new Description(
260+
"Get the latest information from the WHO about coronavirus.",
261+
Description.PLAIN_TEXT),
262+
Collections.singletonList(
263+
new URL("https://www.who.int/emergencies/diseases/novel-coronavirus-2019")),
264+
Collections.singletonList("LEARN MORE")
266265
));
267266
}
268267
// testMoreRelatedItems is broken because a video has no duration shown

0 commit comments

Comments
 (0)