Skip to content

Commit

Permalink
Add a missing @mainactor annotation on a test
Browse files Browse the repository at this point in the history
This test is relying on remaining on the main thread after an await.
  • Loading branch information
tgoyne committed Jun 18, 2024
1 parent a6720bc commit 4f58799
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions RealmSwift/Tests/ProjectionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 4f58799

Please sign in to comment.