From 0537a94df5f7e6acf4a696c17693611999e443c0 Mon Sep 17 00:00:00 2001 From: Hanton Date: Mon, 29 Jul 2019 04:09:47 +0800 Subject: [PATCH] Fix ASBasicImageDownloaderTests (#1576) --- Tests/ASBasicImageDownloaderTests.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)