From d8517b88d7f6368adcbe0fc6b5519ddf250449a2 Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Thu, 9 Oct 2025 06:30:37 -0700 Subject: [PATCH 1/2] Fixed sendable warnings when running tests --- .../WebAuthnTests/Utils/TestModels/TestKeyConfiguration.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/WebAuthnTests/Utils/TestModels/TestKeyConfiguration.swift b/Tests/WebAuthnTests/Utils/TestModels/TestKeyConfiguration.swift index 7420e8b..e8a0a73 100644 --- a/Tests/WebAuthnTests/Utils/TestModels/TestKeyConfiguration.swift +++ b/Tests/WebAuthnTests/Utils/TestModels/TestKeyConfiguration.swift @@ -13,13 +13,13 @@ import Foundation -protocol TestSigner { +protocol TestSigner: Sendable { static func sign(data: Data) throws -> [UInt8] static var signature: [UInt8] { get throws } } -struct TestKeyConfiguration { +struct TestKeyConfiguration: Sendable { var signer: any TestSigner.Type var credentialPublicKeyBuilder: TestCredentialPublicKeyBuilder var authDataBuilder: TestAuthDataBuilder From 830cce17b0d3eabbe057d585104bfd7c599184ff Mon Sep 17 00:00:00 2001 From: Dimitri Bouniol Date: Thu, 9 Oct 2025 06:31:01 -0700 Subject: [PATCH 2/2] Fixed an issue that would cause some test runners to fail --- Tests/WebAuthnTests/WebAuthnManagerRegistrationTests.swift | 1 - 1 file changed, 1 deletion(-) diff --git a/Tests/WebAuthnTests/WebAuthnManagerRegistrationTests.swift b/Tests/WebAuthnTests/WebAuthnManagerRegistrationTests.swift index bf9ecbb..4efd893 100644 --- a/Tests/WebAuthnTests/WebAuthnManagerRegistrationTests.swift +++ b/Tests/WebAuthnTests/WebAuthnManagerRegistrationTests.swift @@ -398,7 +398,6 @@ struct WebAuthnManagerRegistrationTests { rawID: credentialID, attestationObject: attestationObject ) - #expect(credential != nil) #expect(credential.id == credentialID.base64EncodedString().asString()) #expect(credential.publicKey == credentialPublicKey)