diff --git a/Tests/XcodesKitTests/XcodesKitTests.swift b/Tests/XcodesKitTests/XcodesKitTests.swift index 711a031..d4e7c3b 100644 --- a/Tests/XcodesKitTests/XcodesKitTests.swift +++ b/Tests/XcodesKitTests/XcodesKitTests.swift @@ -56,6 +56,7 @@ final class XcodesKitTests: XCTestCase { XCTAssertEqual(value, Path.applicationSupport.join("com.robotsandpencils.xcodes").join("Xcode-0.0.0.xip").url) XCTAssertNil(xcodeDownloadURL) } + .cauterize() } func test_DownloadOrUseExistingArchive_DownloadsArchive() { @@ -73,6 +74,7 @@ final class XcodesKitTests: XCTestCase { XCTAssertEqual(value, Path.applicationSupport.join("com.robotsandpencils.xcodes").join("Xcode-0.0.0.xip").url) XCTAssertEqual(xcodeDownloadURL, URL(string: "https://apple.com/xcode.xip")!) } + .cauterize() } func test_InstallArchivedXcode_SecurityAssessmentFails_Throws() { @@ -111,6 +113,7 @@ final class XcodesKitTests: XCTestCase { let xipURL = URL(fileURLWithPath: "/Xcode-0.0.0.xip") installer.installArchivedXcode(xcode, at: xipURL, archiveTrashed: { _ in }, passwordInput: { Promise.value("") }) .ensure { XCTAssertEqual(trashedItemAtURL, xipURL) } + .cauterize() } func test_UninstallXcode_TrashesXcode() { @@ -123,6 +126,7 @@ final class XcodesKitTests: XCTestCase { let installedXcode = InstalledXcode(path: Path("/Applications/Xcode-0.0.0.app")!)! installer.uninstallXcode(installedXcode) .ensure { XCTAssertEqual(trashedItemAtURL, installedXcode.path.url) } + .cauterize() } func test_VerifySecurityAssessment_Fails() { @@ -131,6 +135,7 @@ final class XcodesKitTests: XCTestCase { let installedXcode = InstalledXcode(path: Path("/Applications/Xcode-0.0.0.app")!)! installer.verifySecurityAssessment(of: installedXcode) .tap { result in XCTAssertFalse(result.isFulfilled) } + .cauterize() } func test_VerifySecurityAssessment_Succeeds() { @@ -139,6 +144,7 @@ final class XcodesKitTests: XCTestCase { let installedXcode = InstalledXcode(path: Path("/Applications/Xcode-0.0.0.app")!)! installer.verifySecurityAssessment(of: installedXcode) .tap { result in XCTAssertTrue(result.isFulfilled) } + .cauterize() } func test_MigrateApplicationSupport_NoSupportFiles() {