Skip to content

Commit ae1e843

Browse files
Reduce the new async addTeardownBlock to public
Co-authored-by: Stuart Montgomery <smontgomery@apple.com>
1 parent 9c2ca2b commit ae1e843

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: @Sendable @escaping () async throws -> Void) {
208+
public func addTeardownBlock(_ block: @Sendable @escaping () async throws -> Void) {
209209
teardownBlocksState.appendAsync(block)
210210
}
211211

0 commit comments

Comments
 (0)