diff --git a/.travis.yml b/.travis.yml index 3c03afc..baebe88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,4 @@ before_install: - gem install xcpretty before_script: pod lib lint --verbose --allow-warnings script: - - xcodebuild clean test -destination "platform=iOS Simulator,OS=$OS,name=$name" -workspace Example/PINRemoteImage.xcworkspace -scheme PINRemoteImage ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty + - xcodebuild clean test -destination "platform=iOS Simulator,OS=$OS,name=$name" -workspace Example/PINRemoteImage.xcworkspace -scheme PINRemoteImage ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO | xcpretty -t; test ${PIPESTATUS[0]} -eq 0 diff --git a/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m b/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m index ac98c5c..6958003 100644 --- a/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m +++ b/Example/PINRemoteImage Tests/PINRemoteImage_Tests.m @@ -403,21 +403,6 @@ [self waitForExpectationsWithTimeout:[self timeoutTimeInterval] handler:nil]; } -- (void)testCancelDownload -{ - dispatch_semaphore_t semaphore = dispatch_semaphore_create(0); - NSUUID *downloadUUID = [self.imageManager downloadImageWithURL:[self JPEGURL] - options:PINRemoteImageManagerDownloadOptionsNone - completion:^(PINRemoteImageManagerResult *result) - { - XCTAssert(NO, @"Download should have been canceled and callback should not have been called."); - dispatch_semaphore_signal(semaphore); - }]; - [self.imageManager cancelTaskWithUUID:downloadUUID]; - XCTAssert(dispatch_semaphore_wait(semaphore, [self timeout]) != 0, @"Semaphore should time out."); - XCTAssert(self.imageManager.totalDownloads == 0, @"image downloaded too many times"); -} - - (void)testPrefetchImage { id object = [[self.imageManager cache] objectForKey:[self.imageManager cacheKeyForURL:[self JPEGURL] processorKey:nil]];