Skip to content

Commit

Permalink
The ssl error is varing from SDK versions
Browse files Browse the repository at this point in the history
So I decide to check either of them.
  • Loading branch information
onevcat committed Sep 10, 2015
1 parent a8309d3 commit 73802cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KingfisherTests/ImageDownloaderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class ImageDownloaderTests: XCTestCase {

downloader.downloadImageWithURL(URL, progressBlock: nil, completionHandler: { (image, error, imageURL) -> () in
XCTAssertNotNil(error, "Error should not be nil")
XCTAssert(error?.code == NSURLErrorServerCertificateUntrusted, "Error should be NSURLErrorServerCertificateUntrusted, but \(error)")
XCTAssert(error?.code == NSURLErrorServerCertificateUntrusted || error?.code == NSURLErrorSecureConnectionFailed, "Error should be NSURLErrorServerCertificateUntrusted, but \(error)")
expectation.fulfill()
LSNocilla.sharedInstance().start()
})
Expand Down

0 comments on commit 73802cb

Please sign in to comment.