From 4f587997bb1636cb01d9620b5f4ced74d374b125 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Tue, 18 Jun 2024 13:53:11 -0700 Subject: [PATCH] Add a missing @MainActor annotation on a test This test is relying on remaining on the main thread after an await. --- RealmSwift/Tests/ProjectionTests.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/RealmSwift/Tests/ProjectionTests.swift b/RealmSwift/Tests/ProjectionTests.swift index 6a7ef98903..8bdb5071c8 100644 --- a/RealmSwift/Tests/ProjectionTests.swift +++ b/RealmSwift/Tests/ProjectionTests.swift @@ -1590,6 +1590,7 @@ class ProjectionTests: TestCase, @unchecked Sendable { observeSetChange(obs, "mapOptUuid") { obj.mapOptUuid.removeObject(for: "key") } } + @MainActor func testObserveOnActor() async throws { let projection = simpleProjection() let ex = expectation(description: "got change")