diff --git a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSubscriptionExtractorTest.java b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSubscriptionExtractorTest.java index 2ab515fd8..59c84636c 100644 --- a/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSubscriptionExtractorTest.java +++ b/extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeSubscriptionExtractorTest.java @@ -33,7 +33,9 @@ public class YoutubeSubscriptionExtractorTest { @Test public void testFromInputStream() throws Exception { - File testFile = new File("src/test/resources/youtube_export_test.xml"); + File testFile = new File("extractor/src/test/resources/youtube_export_test.xml"); + if (!testFile.exists()) testFile = new File("src/test/resources/youtube_export_test.xml"); + List subscriptionItems = subscriptionExtractor.fromInputStream(new FileInputStream(testFile)); assertTrue("List doesn't have exactly 8 items (had " + subscriptionItems.size() + ")", subscriptionItems.size() == 8);