diff --git a/Tests/ASBasicImageDownloaderTests.mm b/Tests/ASBasicImageDownloaderTests.mm index 8268dfcd6..4e5ff2862 100644 --- a/Tests/ASBasicImageDownloaderTests.mm +++ b/Tests/ASBasicImageDownloaderTests.mm @@ -23,7 +23,9 @@ - (void)testAsynchronouslyDownloadTheSameURLTwice XCTestExpectation *secondExpectation = [self expectationWithDescription:@"Second ASBasicImageDownloader completion handler should be called within 3 seconds"]; ASBasicImageDownloader *downloader = [ASBasicImageDownloader sharedImageDownloader]; - NSURL *URL = [NSURL URLWithString:@"http://wrongPath/wrongResource.png"]; + NSURL *URL = [[NSBundle bundleForClass:[self class]] URLForResource:@"logo-square" + withExtension:@"png" + subdirectory:@"TestResources"]; [downloader downloadImageWithURL:URL callbackQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)