Skip to content

Commit c430430

Browse files
Fixed CI Errors that would cause issues on Swift 6.1 and 6.2 (#113)
• Fixed sendable warnings when running tests. • Fixed an issue that would cause some test runners to fail.
1 parent d52e940 commit c430430

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Tests/WebAuthnTests/Utils/TestModels/TestKeyConfiguration.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
import Foundation
1515

16-
protocol TestSigner {
16+
protocol TestSigner: Sendable {
1717
static func sign(data: Data) throws -> [UInt8]
1818

1919
static var signature: [UInt8] { get throws }
2020
}
2121

22-
struct TestKeyConfiguration {
22+
struct TestKeyConfiguration: Sendable {
2323
var signer: any TestSigner.Type
2424
var credentialPublicKeyBuilder: TestCredentialPublicKeyBuilder
2525
var authDataBuilder: TestAuthDataBuilder

Tests/WebAuthnTests/WebAuthnManagerRegistrationTests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ struct WebAuthnManagerRegistrationTests {
398398
rawID: credentialID,
399399
attestationObject: attestationObject
400400
)
401-
#expect(credential != nil)
402401

403402
#expect(credential.id == credentialID.base64EncodedString().asString())
404403
#expect(credential.publicKey == credentialPublicKey)

0 commit comments

Comments
 (0)