Fix missing try in test

This commit is contained in:
Davide De Rosa 2019-02-27 20:08:59 +01:00
parent f67b33bf56
commit 9544e59fcf
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class EncryptionTests: XCTestCase {
func testCertificateMD5() {
let path = Bundle(for: EncryptionTests.self).path(forResource: "pia-2048", ofType: "pem")!
let md5 = TLSBox.md5(forCertificatePath: path)
let md5 = try! TLSBox.md5(forCertificatePath: path)
let exp = "e2fccccaba712ccc68449b1c56427ac1"
print(md5)
XCTAssertEqual(md5, exp)