Skip to content

Commit da82bb9

Browse files
Keep running tearDown blocks on the main actor consistently
1 parent 2a46822 commit da82bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/XCTest/Private/XCTestCase.TearDownBlocksState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension XCTestCase {
1313
final class TeardownBlocksState {
1414

1515
#if DISABLE_XCTWAITER
16-
typealias TeardownBlock = @Sendable () async throws -> Void
16+
typealias TeardownBlock = @Sendable @MainActor () async throws -> Void
1717
#else
1818
typealias TeardownBlock = () throws -> Void
1919
#endif

0 commit comments

Comments
 (0)