Skip to content

Commit ef80403

Browse files
committed
fix tests on linux
1 parent 4f38ae1 commit ef80403

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/WebAuthnTests/Ceremonies/Registration/ParsedAuthenticatorAttestationResponseTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ final class ParsedAuthenticatorAttestationResponseTests: XCTestCase {
1111

1212
func testInitFromRawResponseFailsWithInvalidClientDataJSON() throws {
1313
XCTAssertThrowsError(try parseResponse(
14-
clientDataJSON: "a", // this isn't base64 decodable, so parsing should fail
14+
clientDataJSON: "%%%", // this isn't base64 decodable, so parsing should fail
1515
attestationObject: ""
1616
)) { error in
1717
XCTAssertEqual(error as? WebAuthnError, .invalidClientDataJSON)
@@ -30,7 +30,7 @@ final class ParsedAuthenticatorAttestationResponseTests: XCTestCase {
3030
func testInitFromRawResponseFailsIfAttestationObjectIsNotBase64() throws {
3131
XCTAssertThrowsError(try parseResponse(
3232
clientDataJSON: realClientDataJSON,
33-
attestationObject: "a"
33+
attestationObject: "%%%"
3434
)) { error in
3535
XCTAssertEqual(error as? WebAuthnError, .invalidAttestationObject)
3636
}

Tests/WebAuthnTests/WebAuthnManagerTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ final class WebAuthnManagerTests: XCTestCase {
5454

5555
func testFinishRegistrationFailsWithInvalidRawID() async throws {
5656
do {
57-
_ = try await finishRegistration(rawID: "_")
57+
_ = try await finishRegistration(rawID: "%")
5858
XCTFail("Should not succeed")
5959
} catch {
6060
XCTAssertEqual(error as! WebAuthnError, .invalidRawID)

0 commit comments

Comments
 (0)