Fix `checkCartonTestFail` to ensure the process terminated with non-zero code

This commit is contained in:
Yuta Saito 2024-05-22 12:51:51 +09:00
parent d5b873145a
commit 5959492410
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ final class TestCommandTests: XCTestCase {
["carton", "test", "--environment", "browser", "--headless"], ["carton", "test", "--environment", "browser", "--headless"],
packageDirectory: packageDirectory.url packageDirectory: packageDirectory.url
) )
try result.checkNonZeroExit() XCTAssertNotEqual(result.exitStatus, .terminated(code: 0))
} }
} }