Skip to content

Commit 9c2ca2b

Browse files
author
Sean Olszewski
committed
Address last PR comment
1 parent c385668 commit 9c2ca2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/XCTest/Public/XCTestCase.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,17 +251,17 @@ open class XCTestCase: XCTest {
251251
}
252252
}
253253

254-
func runTeardownBlocks(errorHandler: @escaping (Error) -> Void) {
254+
func runTeardownBlocks() {
255255
for block in self.teardownBlocksState.finalize().reversed() {
256256
do {
257257
try block()
258258
} catch {
259-
errorHandler(error)
259+
handleErrorDuringTearDown(error)
260260
}
261261
}
262262
}
263263

264-
runTeardownBlocks(errorHandler: handleErrorDuringTearDown(_:))
264+
runTeardownBlocks()
265265

266266
tearDown()
267267

0 commit comments

Comments
 (0)