Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FirebaseAuth/Tests/Unit/GetRecaptchaConfigTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class GetRecaptchaConfigTests: RPCBaseTests {
rpcIssuer.recaptchaSiteKey = kTestRecaptchaKey
let enforcementMode = "AUDIT"
rpcIssuer.rceMode = enforcementMode
let response = try await AuthBackend.call(with: request)
let response = try await authBackend.call(with: request)
XCTAssertEqual(response.recaptchaKey, kTestRecaptchaKey)
XCTAssertEqual(
response.enforcementState,
Expand All @@ -67,7 +67,7 @@ class GetRecaptchaConfigTests: RPCBaseTests {
let request = GetRecaptchaConfigRequest(requestConfiguration: makeRequestConfiguration())
let enforcementMode = "OFF"
rpcIssuer.rceMode = enforcementMode
let response = try await AuthBackend.call(with: request)
let response = try await authBackend.call(with: request)
XCTAssertEqual(response.recaptchaKey, nil)
XCTAssertEqual(
response.enforcementState,
Expand Down
2 changes: 1 addition & 1 deletion FirebaseAuth/Tests/Unit/PhoneAuthProviderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@
}
}

class FakeAuthRecaptchaVerifier: AuthRecaptchaVerifier {
class FakeAuthRecaptchaVerifier: AuthRecaptchaVerifier, @unchecked Sendable {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks okay for now since it's test code. What prompted this to be added though?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI failed for this asking to restate from sendable

var captchaResponse: String
var error: Error?
init(captchaResponse: String? = nil, error: Error? = nil) {
Expand Down
Loading