We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb41e55 commit 5e1ca37Copy full SHA for 5e1ca37
Sources/XCTest/Public/XCTestCase.swift
@@ -205,7 +205,7 @@ open class XCTestCase: XCTest {
205
/// Registers a block of teardown code to be run after the current test
206
/// method ends.
207
@available(macOS 12.0, *)
208
- open func addTeardownBlock(_ block: @escaping () async throws -> Void) {
+ open func addTeardownBlock(_ block: @Sendable @escaping () async throws -> Void) {
209
teardownBlocksState.append(block)
210
}
211
0 commit comments