Sfoglia il codice sorgente

Fix tests on macOS

onevcat 8 anni fa
parent
commit
0cc030ec95
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Tests/KingfisherTests/KingfisherManagerTests.swift

+ 2 - 0
Tests/KingfisherTests/KingfisherManagerTests.swift

@@ -286,7 +286,9 @@ class KingfisherManagerTests: XCTestCase {
         
         manager.defaultOptions = [.scaleFactor(2)]
         manager.retrieveImage(with: url, options: nil, progressBlock: nil, completionHandler: { image, _, _, _ in
+            #if !os(macOS)
             XCTAssertEqual(image!.scale, 2.0)
+            #endif
             expectation.fulfill()
         })
         waitForExpectations(timeout: 5, handler: nil)