Skip to content

Commit fd4d28b

Browse files
test: mainactor annotations
1 parent ec83755 commit fd4d28b

File tree

1 file changed

+2
-2
lines changed
  • samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests

1 file changed

+2
-2
lines changed

samples/swiftui/FirebaseSwiftUIExample/FirebaseSwiftUIExampleUITests/TestUtils.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func createEmail() -> String {
3232
// MARK: - User Creation
3333

3434
/// Helper to create a test user in the emulator via REST API (avoids keychain issues)
35-
func createTestUser(email: String, password: String = "123456",
35+
@MainActor func createTestUser(email: String, password: String = "123456",
3636
verifyEmail: Bool = false) async throws {
3737
// Use Firebase Auth emulator REST API directly to avoid keychain access issues in UI tests
3838
let signUpUrl =
@@ -77,7 +77,7 @@ func createTestUser(email: String, password: String = "123456",
7777
// MARK: - Email Verification
7878

7979
/// Verifies an email address in the emulator using the OOB code mechanism
80-
func verifyEmailInEmulator(email: String,
80+
@MainActor func verifyEmailInEmulator(email: String,
8181
idToken: String,
8282
projectID: String = "flutterfire-e2e-tests",
8383
emulatorHost: String = "127.0.0.1:9099") async throws {

0 commit comments

Comments
 (0)