Sfoglia il codice sorgente

Remove progress assertion

onevcat 9 anni fa
parent
commit
8d416ec85b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      Tests/KingfisherTests/NSButtonExtensionTests.swift

+ 1 - 1
Tests/KingfisherTests/NSButtonExtensionTests.swift

@@ -118,7 +118,7 @@ class NSButtonExtensionTests: XCTestCase {
         let url = URL(string: URLString)!
 
         button.kf_setImage(with: url, placeholder: nil, options: nil, progressBlock: { (receivedSize, totalSize) -> () in
-            XCTFail("Progress block should not be called.")
+            
         }) { (image, error, cacheType, imageURL) -> () in
             XCTAssertNotNil(error)
             XCTAssertEqual(error?.code, NSURLErrorCancelled)