Fix tests

This commit is contained in:
Max Goedjen
2021-07-26 20:19:27 -07:00
parent 7e74b0910a
commit f750ae9d78
3 changed files with 6 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ extension Stub {
public func sign(data: Data, with secret: Secret, for provenance: SigningRequestProvenance) throws -> Data {
guard !shouldThrow else {
throw NSError()
throw NSError(domain: "test", code: 0, userInfo: nil)
}
let privateKey = SecKeyCreateWithData(secret.privateKey as CFData, [
kSecAttrKeyType: kSecAttrKeyTypeECSECPrimeRandom,