Skip to content

Commit 5e1ca37

Browse files
Sean Olszewskistmontgomery
andauthored
Update Sources/XCTest/Public/XCTestCase.swift
Co-authored-by: Stuart Montgomery <smontgomery@apple.com>
1 parent cb41e55 commit 5e1ca37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/XCTest/Public/XCTestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ open class XCTestCase: XCTest {
205205
/// Registers a block of teardown code to be run after the current test
206206
/// method ends.
207207
@available(macOS 12.0, *)
208-
open func addTeardownBlock(_ block: @escaping () async throws -> Void) {
208+
open func addTeardownBlock(_ block: @Sendable @escaping () async throws -> Void) {
209209
teardownBlocksState.append(block)
210210
}
211211

0 commit comments

Comments
 (0)