File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ class ShellOutTests: XCTestCase {
95
95
96
96
func testThrowingError( ) async {
97
97
do {
98
- try await shellOut ( to: " cd " , arguments: [ " notADirectory " ] )
98
+ try await shellOut ( to: . bash ( arguments: [ " cd notADirectory" ] ) )
99
99
XCTFail ( " Expected expression to throw " )
100
100
} catch let error as ShellOutError {
101
101
XCTAssertTrue ( error. message. contains ( " notADirectory " ) )
@@ -141,9 +141,8 @@ class ShellOutTests: XCTestCase {
141
141
let pipe = Pipe ( )
142
142
143
143
do {
144
- try await shellOut ( to: " cd " ,
145
- arguments: [ " notADirectory " ] ,
146
- errorHandle: pipe. fileHandleForWriting)
144
+ try await shellOut ( to: . bash( arguments: [ " cd notADirectory " ] ) ,
145
+ errorHandle: pipe. fileHandleForWriting)
147
146
XCTFail ( " Expected expression to throw " )
148
147
} catch let error as ShellOutError {
149
148
XCTAssertTrue ( error. message. contains ( " notADirectory " ) )
You can’t perform that action at this time.
0 commit comments