@MainActor on XCTestCase warns with strict concurrency checking #2739
-
I've turned on strict concurrency checking. Currently using the Xcode 15.3 beta. I have a test case that I defined following the documentation. With strict concurrency checking I get the following warning:
![]() Should I ignore this? I noticed that if I move the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@humblehacker You can move the |
Beta Was this translation helpful? Give feedback.
@humblehacker You can move the
@MainActor
annotations to individual test cases instead to work around this warning, but it may be worth bringing up on the Swift forums or in a feedback!