Преглед на файлове

Remove progress assertion

onevcat преди 9 години
родител
ревизия
8d416ec85b
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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)!
         let url = URL(string: URLString)!
 
 
         button.kf_setImage(with: url, placeholder: nil, options: nil, progressBlock: { (receivedSize, totalSize) -> () in
         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
         }) { (image, error, cacheType, imageURL) -> () in
             XCTAssertNotNil(error)
             XCTAssertNotNil(error)
             XCTAssertEqual(error?.code, NSURLErrorCancelled)
             XCTAssertEqual(error?.code, NSURLErrorCancelled)