Skip to content

Commit

Permalink
Fix ASBasicImageDownloaderTests (#1576)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanton authored and nguyenhuy committed Jul 28, 2019
1 parent e93e666 commit 0537a94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/ASBasicImageDownloaderTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0537a94

Please sign in to comment.