Skip to content

Commit feeec17

Browse files
[Test] remove temp directory in tearDown instead of deinit
Testcase can be deinit without calling `setUp` in case of something fatal happens. This will cause unwrapping nil during tests if running tests with `--parallel`.
1 parent ad1809d commit feeec17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ final class SwiftDriverTests: XCTestCase {
6161
}
6262
}
6363

64-
deinit {
64+
override func tearDown() {
6565
try? localFileSystem.removeFileTree(AbsolutePath(validating: self.ld.dirname))
6666
}
6767

0 commit comments

Comments
 (0)